European heavyweights France and Spain will meet in the final of the Olympic men's football after both came from behind to win their semis.
Jean-Philippe Mateta fired a double, including an 83rd-minute equaliser which forced extra-time as the hosts overcame a spirited Egypt 3-1 in Lyon.
After Mahmoud Saber's opener for Egypt, Thierry Henry's side hit the woodwork three times and missed a spate of other chances before Mateta finally drew them level.