Martin took his first sprint win of the season at the French GP and added a second to his tally in Germany, taking the chequered flag 2.4 seconds clear.
The Pramac Ducati rider took the lead on lap four with a daring double overtake and instantly opened a near-second gap to the chasing pack.
It moves him up to second in the championship, 21 points behind Bagnaia after the factory Ducati rider was second in the sprint.
Bagnaia couldn’t get to Turn 1 first from pole as the rocket KTM of Jack Miller powered ahead.
However, the reigning world champion carved back ahead into Turn 2 before the former team-mates exchanged overtakes through Turns 7 and 8.
Bagnaia got the upper hand in this scrap, before Martin came through on Miller into Turn 12 at the end of the opening tour.
At Turn 1 on lap two, Bagnaia ran wide and let Miller come back through, before getting back past the Australian two tours later at the same corner.
Source: Autosport