Ducati's Francesco Bagnaia takes pole at French Grand Prix qualifying
Bagnaia was fastest in Le Mans with a time of 1 minute 30.705 seconds, 0.058 seconds ahead of six-time MotoGP world champion Marc Marquez, who was making his return after recovering from a hand injury.
"I pushed a lot. It's not been easy, it wasn't the best start to the week," Bagnaia said.
"The pace was very competitive, but finally we can also be competitive."
Despite being denied a 65th career MotoGP pole, Marquez will take heart from his performance on his return after recovering from a hand injury.
Marquez underwent surgery after breaking the first metacarpal on his right hand in a collision in the season-opening race in Portugal, ruling him out of races in Argentina, Texas and Spain.
"The target this weekend was just to do our 100%," Marquez said.
"We didn't expect to be here, honestly speaking, but with my team, me and Honda, you never know what will happen."
Italian Luca Marini - MotoGP great Valentino Rossi's half-brother - completes the front row for Sunday's race after coming through Q1 before finishing 0.137 seconds behind Honda's Marquez.
"It was really tough in Q1," Marini said. "I tried hard to give my all and risk everything."
KTM's Jack Miller and Jorge Martin of Pramac Racing were fourth and fifth, while Maverick Vinales of Aprilia, who dominated practice, finished sixth fastest after technical problems.
France's 2021 world champion Fabio Quartararo finished third in Q1, meaning he will line up in 13th place for his home GP.