Defending Serie A champions AC Milan have been eliminated from the Italian Cup after a surprise 1-0 last-16 loss at home to 10-man Torino.
Torino's chances of getting a result at San Siro on Wednesday appeared to diminish in the 70th minute when defender Koffi Djidji -- who had been booked early on -- was sent off for a second yellow card.
However, they managed to force extra time and scored the winner six minutes from the end as a counterattack sent Brian Bayeye racing down the right and he crossed for midfielder Ndary Adopo to slot home.
Torino will face either Sampdoria or Fiorentina in the quarter-finals.
The hosts had had the better of the chances but were denied several times by Torino goalkeeper Vanja Milinkovic-Savic, and also hit the post in the first half through Charles De Ketelaere.
It was the second surprising result for Milan in less than a week after Sunday's disappointing 2-2 draw at home against Roma, when the Rossoneri squandered a two-goal advantage late on.
Torino, who have won the Italian Cup five times but not since 1993, joined Milan's local rivals Inter in the last eight after Simone Inzaghi's side advanced with a 2-1 comeback win over Parma on Tuesday.