South American champion River Plate was upset by Al Ain FC in the Club World Cup on Tuesday, losing in a penalty shootout after the semifinal finished 2-2 following extra time.

Al Ain's players converted all five penalty kicks, before goalkeeper Khalid Eisa saved Enzo Perez's fifth shot for River to seal a 5-4 victory in the shootout.

River endured the humbling loss to the team from United Arab Emirates less than two weeks after thrilling its fans with a memorable win over fierce Argentine rival Boca Juniors in the final of the Copa Libertadores.

Emirates's Al Ain head coach Zoran Mamic, right, celebrates with Emirates's Al Ain Hussein Elshahat during a penalty shootout at the end of the Club World Cup semifinal soccer match between Al Ain Club and River Plate at the Hazza Bin Zayed stadium in Al Ain, United Arab Emirates, Tuesday, Dec. 18, 2018. (AP PhotoHassan Ammar)

Emirates's Al Ain head coach Zoran Mamic, right, celebrates with Emirates's Al Ain Hussein Elshahat during a penalty shootout at the end of the Club World Cup semifinal soccer match between Al Ain Club and River Plate at the Hazza Bin Zayed stadium in Al Ain, United Arab Emirates, Tuesday, Dec. 18, 2018. (AP PhotoHassan Ammar)

Real Madrid plays Kashima Antlers on Wednesday in the other semifinal.

Marcus Berg put Al Ain ahead in the third minute before Santos Borre scored twice to give River the lead in the 16th.

Brazilian forward Caio pulled Al Ain level at 2-2 in the 51st.

Emirates's Al Ain Ismail Ahmed, left, jumps for the ball with Argentina's River Plate Lucas Pratto during the Club World Cup semifinal soccer match between Al Ain Club and River Plate at the Hazza Bin Zayed stadium in Al Ain, United Arab Emirates, Tuesday, Dec. 18, 2018. (AP PhotoHassan Ammar)

Emirates's Al Ain Ismail Ahmed, left, jumps for the ball with Argentina's River Plate Lucas Pratto during the Club World Cup semifinal soccer match between Al Ain Club and River Plate at the Hazza Bin Zayed stadium in Al Ain, United Arab Emirates, Tuesday, Dec. 18, 2018. (AP PhotoHassan Ammar)

Gonzalo Martinez had an opportunity to put River back in front from the penalty spot after Mohamed Ahmad fouled Milton Casco in the area. But Martinez hit the 68th-minute spot kick against the crossbar.

The final is on Saturday.

More AP soccer: https://apnews.com/apf-Soccer and https://twitter.com/AP_Sports

Argentina's River Plate Javier Pinola,left, and Emirates's Al Ain Yahia Nader run for the ball during the Club World Cup semifinal soccer match between Al Ain Club and River Plate at the Hazza Bin Zayed stadium in Al Ain, United Arab Emirates, Tuesday, Dec. 18, 2018. (AP PhotoHassan Ammar)

Argentina's River Plate Javier Pinola,left, and Emirates's Al Ain Yahia Nader run for the ball during the Club World Cup semifinal soccer match between Al Ain Club and River Plate at the Hazza Bin Zayed stadium in Al Ain, United Arab Emirates, Tuesday, Dec. 18, 2018. (AP PhotoHassan Ammar)