Nine-time world rally champion Sebastian Loeb of France won the Rally of Spain on Sunday, ending his full-time racing career with his 76th victory.