Chelsea's Catarina Macario, left, scores the second goal from penalty...

Chelsea's Catarina Macario, left, scores the second goal from penalty during the women's Champions League, group B soccer match between Real Madrid and Chelsea at the Alfredo Di Stefano stadium in Madrid, Spain, Tuesday, Dec. 17, 2024. Credit: AP/Manu Fernandez

United States striker Catarina Macario entered as a halftime substitute and converted two penalties for Chelsea in a 2-1 win over Real Madrid that helped the English club finish top of its Women’s Champions League group with a 100% record on Tuesday.

Madrid was already sure of qualifying for the quarterfinals along with Chelsea, but needed a win at Estadio Alfredo Di Stefano to go through as the Group B winner.

The Spanish team was on course for victory when Caroline Weir opened the scoring in the seventh minute after her shot could only be parried onto the post by Chelsea goalkeeper Hannah Hampton and into the net.

Macario was brought on at halftime and made a huge difference, with her incisiveness leading to a penalty when she was tripped by Olga Carmona.

The Brazil-born Macario curled a right-footed shot high into the net in the 51st minute and converted a second penalty into almost exactly the same spot in the 56th after Chelsea midfielder Wieke Kaptein flicked the ball into the outstretched left hand of Carmona.

Chelsea won all six of its group games and has yet to lose this season under new coach Sonia Bompastor. In the Women’s Super League in England, Chelsea has won nine games and drawn the other.

Another team to wrap up group play with a maximum 18 points was Lyon, the eight-time champion, after a 1-0 victory at home to two-time winner Wolfsburg. Danielle van de Donk scored in the 81st.

Chelsea's Catarina Macario, right, celebrates after scoring a goal from...

Chelsea's Catarina Macario, right, celebrates after scoring a goal from penalty during the women's Champions League, group B soccer match between Real Madrid and Chelsea at the Alfredo Di Stefano stadium in Madrid, Spain, Tuesday, Dec. 17, 2024. Credit: AP/Manu Fernandez

Both teams had already qualified, with Lyon guaranteed to win Group A.

Roma beat Galatasaray 3-0 in the other Group A game, while Twente defeated Celtic 3-0 in Group B. All four of those teams had already been eliminated.