He and McLaren team owner Ron Dennis met secretly in Japan after Dennis talked to Alonso about driving for the team in the future and Alonso expressed interest in the idea. Both men agreed to a three-year contract for Alonso to drive for McLaren starting from . Alonso's contract with Renault expired on 31 December 2006, and he was not granted an early release for sponsorship reasons. Renault allowed Alonso to make his first appearance for McLaren in a test session at the Circuito de Jerez in November 2006. His main competitors in 2007 were his teammate Lewis Hamilton and Räikkönen at Ferrari. Alonso achieved four Grand Prix victories in Malaysia, Monaco, Europe and Italy and led the championship until Hamilton overtook him. Prior to the season's final round, the , he had 103 championship points to Räikkönen's 100 and Hamilton's 107, and needed to win the race and for his teammate to finish third or lower for his third title. Alonso finished the event third for third overall with 109 points. He had the same number of points as Hamilton; the tie was broken on count-back as Hamilton finished second more often than Alonso.