Lazio reached the quarterfinals of the Italian Cup with a 1-0 win over Udinese after extra time in Rome on Tuesday.

Substitute Ciro Immobile scored in the 106th minute to help send Lazio through to the final eight, where it will meet Milan. The Rossoneri beat Genoa last week.

Defending champion Juventus was playing Sampdoria in another round of 16 match later, with the winner to face either Sassuolo or Cagliari.

Lazio's Ciro Immobile, third right, celebrates with teammates after scoring the opening goal of the game during an Italian Cup soccer match between Lazio and Udinese, at Rome's Olympic Stadium, Tuesday, Jan. 18, 2021. (AP PhotoAndrew Medichini)

Lazio's Ciro Immobile, third right, celebrates with teammates after scoring the opening goal of the game during an Italian Cup soccer match between Lazio and Udinese, at Rome's Olympic Stadium, Tuesday, Jan. 18, 2021. (AP PhotoAndrew Medichini)

Both Lazio and Udinese had several chances in the opening 90 minutes, with the home team having the best opportunity three minutes before the end of normal time.

Udinese goalkeeper Marco Silvestri parried a shot from Sergej Milinković-Savić and then defender Destiny Udogie blocked Raúl Moro’s effort on the follow-up.

Udinese went close to breaking the deadlock early in extra time when Tolgay Arslan’s strike was deflected onto the woodwork but it was Immobile who eventually made the difference.

Lazio's Ciro Immobile, right, celebrates with teammates after scoring the opening goal of the game during an Italian Cup soccer match between Lazio and Udinese, at Rome's Olympic Stadium, Tuesday, Jan. 18, 2021. (AP PhotoAndrew Medichini)

Lazio's Ciro Immobile, right, celebrates with teammates after scoring the opening goal of the game during an Italian Cup soccer match between Lazio and Udinese, at Rome's Olympic Stadium, Tuesday, Jan. 18, 2021. (AP PhotoAndrew Medichini)

The Italy forward — who had been brought on in the 71st minute — ran onto a long ball over the top from fellow substitute Danilo Cataldi and chipped it over Silvestri.

More AP soccer: https://apnews.com/hub/soccer and https://twitter.com/AP_Sports

Lazio's Sergej Milinkovic-Savic, left battles Udinese's Rodrigo Becao for the ball during an Italian Cup soccer match between Lazio and Udinese, at Rome's Olympic Stadium, Tuesday, Jan. 18, 2021. (AP PhotoAndrew Medichini)

Lazio's Sergej Milinkovic-Savic, left battles Udinese's Rodrigo Becao for the ball during an Italian Cup soccer match between Lazio and Udinese, at Rome's Olympic Stadium, Tuesday, Jan. 18, 2021. (AP PhotoAndrew Medichini)

Lazio's goalkeeper Pepe Reina collects the ball during an Italian Cup soccer match between Lazio and Udinese, at Rome's Olympic Stadium, Tuesday, Jan. 18, 2021. (AP PhotoAndrew Medichini)

Lazio's goalkeeper Pepe Reina collects the ball during an Italian Cup soccer match between Lazio and Udinese, at Rome's Olympic Stadium, Tuesday, Jan. 18, 2021. (AP PhotoAndrew Medichini)