Portugal drew with Serbia 1-1 in qualifying for the 2020 European Championship on Monday, with Cristiano Ronaldo playing only half an hour before being substituted with a right leg injury.

In his second game with the national team since the World Cup, Ronaldo had to leave before halftime after pulling a muscle while sprinting to try to reach a long pass at the Stadium of Light in Lisbon.

Serbia opened the scoring with a penalty kick converted by Dusan Tadic in the seventh minute, and Danilo Pereira equalized for the hosts with a powerful long-range shot before halftime.

Portugal's Cristiano Ronaldo receives treatment from medical staff during the Euro 2020 group B qualifying soccer match between Portugal and Serbia at the Luz stadium in Lisbon, Portugal, Monday, March 25, 2019. (AP PhotoArmando Franca)

Portugal's Cristiano Ronaldo receives treatment from medical staff during the Euro 2020 group B qualifying soccer match between Portugal and Serbia at the Luz stadium in Lisbon, Portugal, Monday, March 25, 2019. (AP PhotoArmando Franca)

The defending European champions loudly complained when the officiating crew reversed a 73rd-minute penalty call after Andre Silva's header touched the hand of a defender inside the area. The referee appeared to signal the penalty but backtracked after talking with the linesman.

Portugal had already been held by Ukraine to a home draw in its first qualifying match on Friday.

In the other Group B match, Ukraine won at Luxembourg 2-1 to take the group lead by one point. Luxembourg stayed with three points, one more than Portugal. Serbia, with a game in hand, has one point.

Serbia's Nikola Milenkovic, bottom, and Portugal's Cristiano Ronaldo challenge for the ball during the Euro 2020 group B qualifying soccer match between Portugal and Serbia at the Luz stadium in Lisbon, Portugal, Monday, March 25, 2019. (AP PhotoArmando Franca)

Serbia's Nikola Milenkovic, bottom, and Portugal's Cristiano Ronaldo challenge for the ball during the Euro 2020 group B qualifying soccer match between Portugal and Serbia at the Luz stadium in Lisbon, Portugal, Monday, March 25, 2019. (AP PhotoArmando Franca)

Ronaldo limped toward the sideline and signaled to the bench to request a substitution. He sat by the sideline and removed the captain's armband before doctors arrived and treated what appeared to be his right hamstring.

Ronaldo, who had already been treated for a bleeding nose earlier in the match, walked back to the bench on his own after being replaced by Pizzi Fernandes.

Just like in the scoreless draw against Ukraine, Portugal created numerous scoring opportunities but failed to capitalize. Serbia goalkeeper Marko Dmitrovic made several good saves to keep Portugal from finding the net early on.

Serbia's Nikola Milenkovic, bottom, and Portugal's Cristiano Ronaldo challenge for the ball during the Euro 2020 group B qualifying soccer match between Portugal and Serbia at the Luz stadium in Lisbon, Portugal, Monday, March 25, 2019. (AP PhotoArmando Franca)

Serbia's Nikola Milenkovic, bottom, and Portugal's Cristiano Ronaldo challenge for the ball during the Euro 2020 group B qualifying soccer match between Portugal and Serbia at the Luz stadium in Lisbon, Portugal, Monday, March 25, 2019. (AP PhotoArmando Franca)

Serbia also had its chances, with Tadic and Aleksandar Mitrovic constantly threatening in attack.

The visitors opened the scoring after Mijat Gacinovic was fouled by Portugal goalkeeper Patricio inside the area to prompt the penalty that Tadic calmly converted with a shot to the left corner as Patricio dived the other way.

Portugal continued being held by Dmitrovic's saves until Pereira broke through with a spectacular long-range shot that curled into the net near the end of the first half.

Serbia visits Ukraine for its second qualifier on June 7, while Portugal returns to qualifying action on Sept. 7 with a game at Serbia.

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