PARIS (AP) -- Paris Saint-Germain's unbeaten run under coach Carlo Ancelotti came to end on Wednesday as Lyon came from a goal down to win 3-1 at Parc des Princes and reach the French Cup semifinals.
Ancelotti, who took charge of PSG in January, had seen his team rescue draws and scrape wins with very late goals in recent matches, but this time PSG's luck ran out as its poor defense was exposed again.
Nene put PSG ahead in the 19th minute from the penalty spot, but Kim Kallstrom equalized with a sweetly struck freekick soon after and Lisandro Lopez gave Lyon the lead shortly before the interval.
PSG pressured Lyon's defense throughout the second half, but France goalkeeper Hugo Lloris kept his cool to make several saves and Bafetimbi Gomis punished Ancelotti's side for those missed chances when he stroked home a penalty in injury time.
Lyon looked comfortable until center half Samuel Umtiti was harshly judged to have handled Jeremy Menez's cross from the left and Nene sent Lloris the wrong way from the spot.
After Kallstrom curled a sublime freekick over the wall, PSG went close to regaining the lead in the 35th when Menez burst down the left and set up striker Kevin Gameiro, but his shot was smothered by Lloris.
Lyon rocked PSG when Lopez scored from close range after a mix up in PSG's defense, and Lloris then denied Nene before PSG left the field to jeers.
Ancelotti brought on record signing Javier Pastore for the second half, and PSG immediately pressured Lyon's defense, with center half Alex, Menez and then Pastore forcing Lloris into smart saves.
The action was almost entirely in Lyon's half and, in the 60th minute, Pastore's pass gave midfielder Blaise Matuidi the perfect chance to equalize, but he blazed over the bar.
Lopez missed an even easier chance as Lyon hit PSG on the break down the right flank. Gomis squared the ball to him, but he smacked it over with goalkeeper Nicolas Douchez stranded.
Gomis wrapped up the win with moments left after Alex tripped Michel Bastos as he cut inside the area.
Earlier, semiprofessional team Gazelec Ajaccio produced another upset to reach the semifinals for the first time, beating league title contender Montpellier 1-0 from Yohan Bocognano's goal.
The defender volleyed in from a corner with 15 minutes remaining to stun Montpellier, which is in second place in the French league behind PSG.
The Corsican club's win followed Marseille's 3-2 loss to Quevilly in extra time on Tuesday. Both Gazelec and Quevilly play in the semiprofessional National league, three tiers below the first division.
Rennes joined Gazelec in the last four after winning 3-1 at Valenciennes in an all-first division match.
Winger Jonathan Pitroipa put Rennes ahead in the 12th minute before Mamadou Samassa equalized for the home side. Second-half goals from defender John Boye and forward Youssouf Hadji sealed the win for Rennes.
Gazelec started strongly and striker Mikael Colloredo went close with a header.
Montpellier was on top in the second half with top scorer Olivier Giroud testing goalkeeper Lucas Rastello with a header, before firing wide in the 60th.
Striker Souleymane Camara forced Rastello into another save shortly before Bocognano's goal.
With five minutes left, Giroud headed against the post and midfielder Younes Belhanda sent the last chance of the match wide.