Ducati Team's Italian rider Andrea Dovizioso leads the pack during the 2018 Qatar Moto GP Grand Prix. (KARIM JAAFAR/AFP) |
Dovizioso re-took the lead on the final bend of the 22-lap night race to record a notable victory on a track where he had finished as runner-up for the past three years.
Nine-time world champion Valentino Rossi came home in third place on a Yamaha.
Dovizioso, who finished runner-up in the world championship last year, first snatched the lead with five laps to go from long-time leader France's Johann Zarco, who started on pole.
The Italian held off Marquez, on a Honda, until the dramatic last lap, before taking the chequered flag and his first 25 points of the season.
"It was a perfect race, perfect weekend," said Dovizioso. "We worked very well."
The Italian had been in good form in practice and qualifying and it was surprising that he started fifth on the grid.
Even worse, a bad start on his Ducati meant Dovizioso fell down the field at the start before he was able to haul himself back towards the leaders.
He added: "It was a really bad start but I was calm, I recovered very slowly and saved a lot of tyres."
"I was able to push at the end, even though the tyre was finished."
Spaniard Marquez said he tried to push Dovizioso "100 per cent".
"First of all, I am really happy to finish second on this track, it is one of the most difficult," said Marquez.
"Today, he deserved the victory, he was faster than us, but my target was to try to control him."
It is the third time Dovizioso has beaten Marquez by snatching the lead on the final bend.
Rossi said he was happy with a podium finish, adding he wanted to follow it up with more this year.
"I am so happy, I expect more than last year," said Rossi, who also finished third in Qatar in 2017.
"Thanks to my team, thanks to Yamaha and we try to continue this."
He added: "It's a very good way to start the season."
France's Zarco eventually trailed in eighth, despite leading for two-thirds of the race, dropping off disappointingly at the business end of the contest.
Dovizioso said the chasing pack had waited for the perfect time to attack the Frenchman in an effort to save their tyres on a demanding track.
However the Italian said he was unconvinced his victory had put down a marker for the rest of the season, and still expected several riders to challenge for this year's world championship.
Britain's Cal Crutchlow came in fourth with Danilo Petrucci fifth.
Last year's winner in Doha, Maverick Vinales, took sixth on a Yamaha.
The next race takes place on Apr 8 in Argentina.
What the stars mean:
★ Poor ★ ★ Promising ★★★ Good ★★★★ Very good ★★★★★ Exceptional