ALCANIZ, Spain — Marc Marquez extended his lead of the MotoGP championship after winning the Aragon Grand Prix from pole position on Sunday.

The former two-time champion fought back from fifth place following an early scare that almost cost him control of his Honda.

Marquez passed Valentino Rossi to retake the lead for good on a curve with 12 laps to go. He then pulled away to win the 23-lap race at the 5.1-kilometer (3.16-mile) MotorLand Aragon track in 41 minutes, 57 seconds.

“I stayed calm and step by step I got a good rhythm,” Marquez said about recovering from his steering mistake. “When I overtook Valentino I pushed for another two laps (until) I saw I was ahead.”

The Spaniard increased his lead to 248 points. Rossi, his nearest challenger, has 196 points with four races remaining.

It was Marquez’s 28th career win in the top category and his competition-leading fourth victory of the season.

Jorge Lorenzo later overtook Yamaha teammate Rossi to finish second, crossing the finish line nearly three seconds after Marquez.

In the other categories, British rider Sam Lowes won the Moto2 race from pole position, while Brad Binder of South Africa clinched the Moto3 title with a second-place finish.

Binder crossed behind race winner Jorge Navarro to seal the title with 249 points to Navarro’s 143.