Panama beat Bolivia 3-1 on Monday to finish second in Group C and qualify for the Copa America quarter-finals after tournament hosts United States were eliminated following a 1-0 loss to group winners Uruguay.
Panama are playing in only their second Copa America and the victory moved them up to second with six points, three points above the U.S., as the central American side reached the knockout stage for the first time.
Uruguay finished with nine points.
Bolivia needed a win with only a slim chance of staying alive in the tournament, but it was Panama who drew first blood when Jose Fajardo expertly controlled a header into the box, let it bounce and volleyed home in the 22nd minute.
Bolivia equalised in the 69th minute when they cut through Panama's midfield and defence, with Ramiro Vaca finding Bruno Miranda, who slipped his shot past the keeper.
But Panama wrested back control of qualification 10 minutes later when Eric Davis curled in a cross from the left and Eduardo Guerrero connected with a glancing header.
Panama scored again in added time when Cesar Yanis was put through on goal and he volleyed the ball into the top corner to give them a two-goal cushion, sparking wild celebrations at the Inter&Co Stadium.
Bece8107 7935 44e3 A18a Ec02224fb3f0 Shutterstock 1669166458 ?auto=compress,format&rect=0,1038,6240,3120&w=3000&h=1500Carmel Brantley 644009b44021b ?resize=980 *BB1i5JTH.img?w=780&h=438&m=4&q=9164a4124f33a4c5d2f6eafa43b6adc456 97ad8f7d 09e7 4006 Bba0 615138fe7870 Shutterstock 1678569406 ?auto=compress,format&rect=0,974,5630,2815&w=3000&h=1500A14a3b618a84038e5c15578c887ccb39 Modern Teak Kitchen South Shore Cabinetry Ltd Img~e40112ad0644fd11 14 2499 1 88cbb90 618f07d3 Cd73 4036 A6de 9c71ed690ee2 Shutterstock 2151966675 ?auto=compress,format&rect=1638,2750,5504,2752&w=3000&h=150070102b79bf24ebd10223f071aa6c295c C7c603c7ea2d6cc55d3499d28023f8d1 Lesley Unruh 64400b2c169d4 ?resize=640 *Maxresdefault ?sqp= OaymwEmCIAKENAF8quKqQMa8AEB AGUA4AC0AWKAgwIABABGGUgXShPMA8=&rs=AOn4CLAs8erBvHEsqmhjfUvU3DWiGDCtzwKitchen Island 801 053(1) C2b7f65438d69af220d827b099de9efe ?p=w440Kitchen Island With Seating On Three Sides Kbb Kitchen Island Kitchen Island And New Counter 428264780 Web Benchmark Kitchens 2 700x525 Ef5786edbfaa471c25e0764811ff6a4d 13d08e3a 8405 4fad Abd2 Cac99c1c09ce AP19029483074842 ?crop=2999,1710,x0,y569&width=2999&height=1710&format=pjpg&auto=webp6261726849f1fcf1cc7f260e6c5c6906 Yellow White Kitchen Island With Seating 25 Kitchen Island Update ?size=720x845&nocrop=1Fac44c1941c95fef5c598130cff26b19 25 Kitchen Island Update ?size=1200x628Kitchen Island In Progress 1024x952 U Shaped Island Kitchen Interior Design Rustic Kitchen Island With Pull Out Table Portable Kitchen Island 1536x1148 28daf7f70d036ef9ee723dadd683fd33 Elegant White 600x400 Emblyn Storage Kitchen Island Granite 6d3ee99d43565229c1883a8cf2e553ec 89033ab840edd342a4dbdcff1547c412 What Is Kitchen Island2 520x292 Hinsdale 7th St 12 Lo