Pedrosa, who had qualified on pole for the fourth successive race, lost out to MotoGP world champion Casey Stoner and team-mate Nicky Hayden into turn one, but was quickly back past Hayden and chasing down the Ducati star.

Stoner, a ten times 2007 race winner, was unable to shake the determined Spaniard and Pedrosa eventually breezed past the Australian along the start/finish straight on lap six of 30. Stoner did all he could to keep pressure on his fellow 22-year-old, but Dani - the only Honda rider to win a race this year - edged ever more slightly away with almost every lap.

Pedrosa was 1.8secs clear by the halfway point and went on to take his second victory of the season by 5.447secs - then lit the celebratory fireworks in front of 132,500 cheering trackside fans. The victory was Pedrosa's fourth in the premier-class, first at home and also gave him second in the world championship after Valentino Rossi's painful weekend came to a 'pointless' conclusion.

Rossi, who fractured three bones in his right hand during a spectacular qualifying fall, kept his perfect eleven-year grand prix attendance alive by braving the pain on Sunday - and needed just one point to hold on to second in the world championship.

The Italian began the race from 17th on the grid, took 16th on lap seven, then gingerly passed Shinya Nakano for 15th and the final world championship point on lap 14... but it all came to nothing when Rossi suffered a technical problem into turn one on lap 18. The former five times MotoGP world champion tried to continue, but was forced to admit defeat and pull into the pits two laps later, marking his third DNF of the season.

With Rossi's team-mate Colin Edwards finishing just 13th on his final factory ride, Fiat Yamaha slipped from second to fourth in the teams' championship standings, with Repsol Honda taking second behind Ducati Marlboro as Rizla Suzuki moved up to third.

Meanwhile, Stoner's safe second position gave him a final 2007 points haul of 367 - a massive 125 above nearest rival Pedrosa and the equivalent of five race wins, illustrating just how overwhelming the Australian's season has been.

Completing the Valencia podium was John Hopkins, who charged forwards from seventh on the grid during his final ride for Rizla Suzuki. Hopper's fourth podium of the year also gave the Anglo-American, who will join Kawasaki next season, fourth in the final world championship standings.

Marco Melandri had held that position heading into the event, but the 2008 factory Ducati rider qualified just tenth before winning an exciting duel with Repsol Honda rider Hayden for fourth heading into the closing stages.

Hayden, who started on the outside of the front row, put up a determined defence, but his expected tyre endurance problems duly emerged late in the race and the American eventually slid all the way back to eighth.

Loris Capirossi pipped 2008 Rizla Suzuki team-mate Chris Vermeulen by just 0.058secs to take fifth on his Ducati farewell, while Alex Barros brought his 21-year world championship career to a close with a competitive seventh position.

Behind Hayden, Randy de Puniet's last Kawasaki ride ended in ninth, with Toni Elias completing the top ten for Honda Gresini. Elias' 2008 d'Antin Ducati team-mate Sylvain Guintoli finished his rookie MotoGP season with an eleventh position for Dunlop Tech 3 Yamaha, having qualified an excellent fifth.

Carlos Checa, riding in his 220th and last grand prix before moving to World Superbikes, finished twelfth for Honda LCR - despite being plagued by severe stomach problems all weekend, forcing several trips to the local hospital.

The final world championship point went to Guintoli's team-mate Makoto Tamada, on what looks like being his last grand prix appearance.

Chaz Davies, due to ride in his fourth MotoGP of the season, didn't start the race due to injuries sustained in practice.

Valencian GP:

1. Pedrosa
2. Stoner
3. Hopkins
4. Melandri
5. Capirossi
6. Vermeulen
7. Barros
8. Hayden
9. de Puniet
10. Elias
11. Guintoli
12. Checa
13. Edwards
14. Nakano
15. Tamada
16. West