He was elected Mayor of London as an Independent candidate after the Labour Party decided not to nominate him as their candidate in the first mayoral elections. In January 2004, he was re-admitted to the Labour Party. As the official Labour Party candidate for Mayor in the June 2004 elections, he won with a total of 828,380 first- and second-preference votes. On 1 May 2008 Livingstone was defeated in his second re-election bid by Conservative candidate Boris Johnson, and his term as Mayor of London ended on 4 May 2008.