Manchester United won the match 3-2 over the Italian giants.
Cristiano Ronaldo headed United in the lead in the fifth minute but AC Milan ace Kaka leveled the score after 21 minutes.
Kaka put the Italians ahead from close range just before half time. Rooney leveled the score after a great pass from United teammate Paul Scholes on the hour.
A stunning last-minute winner from Wayne Rooney gives United the advantage over AC Milan ahead of the second leg in Italy next week.