Singapore: Renault's double world champion Fernando Alonso won his first race in more than a year on Sunday while Lewis Hamilton extended his championship lead to seven points after a sensational Singapore Grand Prix that was held for the first time at night.

Ferrari's Felipe Massa, a point behind Hamilton before the race, suffered a setback to his title hopes after a pitstop blunder relegated him from first to last.

Alonso, who had started in 15th place, took advantage of a safety car interlude and the pitstop blunder to move up the field and collect the 20th win of his career and first since Italy last year for McLaren.

Germany's Nico Rosberg finished second for Williams with Hamilton third for McLaren. The result left Hamilton on 84 points to Massa's 77 with three races remaining.

Brazilian Massa had started on pole position and was on course to take the championship lead from Hamilton before a disastrous pitstop changed the complexion of the race.

The Ferrari man was given the green light to go but the fuel hose was still connected as he accelerated away.

The Ferrari dragged the hose down the pitlane, knocking over mechanics in the process, before Massa stopped and waited for assistance. After mechanics struggled to remove the hose, the Brazilian rejoined the race at the back of the field.