Jorge Lorenzo came from seventh on the grid to win a dramatic grand prix at the Motor-land Aragon circuit.
The riders had to battle through mixed conditions in the race, as the rain began to fall with nine laps remaining.
Marc Marquez tried an optimistic strategy with he ajd teammate Dani Pedrosa staying out on slick tyres until the end of the race. This move came crashing down literally with both Pedrosa and Marquez falling off their bikes with three laps remaining.
This handed the race to the Yamaha rider who picked up his first win since Valencia in 2013.
The race started in damp conditions and Andrea Iannone took the early lead in the first couple of corners. However, his advantage would be shortlived as Marquez and Lorenzo both managed to get passed the Italian rider.
A couple of laps later, Iannone found himself on the grass after riding over a damp patch. He was unable to recover the bike to the track from the slippery grass and became the first casualty of the race.
Valentino Rossi soon became the second rider to fall victim to the damp patches on the circuit. Rossi - who won last time out in Misano - was torn off his bike which resulted in a trip to the local hospital for a check-up.
Midway through the race, Lorenzo and Marquez got into a great scrap for the lead and both riders found themselves in front of the race as they entered the closing stages.
With six laps to go, the rain began to fall heavily and Dani Pedrosa began to pounce on the leading pair as he made his way through to the front of the field.
Riders began entering the pit lane to swap bikes with five laps to go but both Honda riders stayed out. It was not long before the conditions caught up with Pedrosa and Marquez as both of them fell of their bikes, but they where still able to pick up points finishing 13th and 14th respectively.
This enabled Aleix Espargaro and Cal Crutchlow to enter the podium positions. Both riders fought for second place in the closing stages with Espargaro winning the drag race to the line.