David Cameron addressed his final Prime Minister's Question Time in the House of Commons. "My advice to my successor, who is a brilliant negotiator, is that we should try to be as close to the European Union as we can be for the benefits of trade, cooperation and of security," he told parliament in his last PMQs.

David Cameron
Prime Minister, David Cameron, leaves number 10 Downing Street for his last Prime Minister's Questions in the House of Commons, on his last day in office as Prime MinisterToby Melville/ Reuters

There was an unusual atmosphere of hilarity as Cameron and opposition leader of the Labour party Jeremy Corbyn exchanged jokes. Cameron took the opportunity to highlight his government's achievements in generating one of the fastest growth rates among western economies, chopping the budget deficit, creating 2.5 million jobs and legalising gay marriage. Yet his legacy will be overshadowed by his failed EU referendum gamble.

"This morning I had meetings with ministerial colleagues and others. Other than one meeting this afternoon with Her Majesty the Queen, the diary for the rest of my day is remarkably light," Cameron said to laughter in a packed House of Commons. He left to cheers, and returned to Number 10 for the last time. Removal lorries bringing Theresa May's belongings had already been and gone. Crowds gathered outside Downing Street hoping to catch one last glimpse of him. The Cameron family shared an emotional final moment on the doorstep after he said goodbye to the press, and then he headed to the Palace.

David Cameron
Britain's outgoing Prime Minister David Cameron leaves 10 Downing Street, as he prepares to address his final Prime Minister's Question Time in the House of CommonsOli Scarff/ Getty Images
David Cameron
Prime Minister David Cameron leaves 10 Downing Street in London, as he prepares to address his final Prime Minister's Question Time in the House of CommonsDan Kitwood/ Getty Images
David Cameron
Prime Minister David Cameron leaves 10 Downing Street in London, as he prepares to address his final Prime Minister's Question Time in the House of CommonsGeoff Caddick/ AFP
David Cameron
Prime Minister, David Cameron, leaves number 10 Downing Street for his last Prime Minister's Questions in the House of Commons, on his last day in office as Prime Minister,Peter Nicholls/ Reuters
David Cameron
Larry the cat walks in front of 10 Downing street on David Cameron's last day as the UK's Prime MinisterDan Kitwood/ Getty Images
Theresa May
A policeman speaks with a removal van driver at the back of 10 Downing Street in LondonDaniel Leal-Olivas/ Getty Images
Theresa May
A delivery packaging list with the name of future British Prime Minister Theresa May is seen in the hands of removal personnel as they arrive at the back of 10 Downing StreetDaniel Leal-Olivas/ Getty Images
George Osborne
Chancellor of the Exchequer George Obsorne leaves number 11 Downing Street to attend David Cameron's final Prime Minister's questions in LondonCarl Court/ Getty Images
David Cameron
Larry the Downing Street cat lays on the pavementToby Melville/ Reuters
David Cameron
Britain's outgoing Prime Minister, David Cameron, speaks during Prime Minister's Questions in the House of CommonsReuters
David Cameron
Britain's outgoing Prime Minister, David Cameron, speaks during Prime Minister's Questions in the House of CommonsReuters
Jeremy Corbyn
Labour party leader, Jeremy Corbyn, listens during Prime Minister's Questions in the House of Commons,Reuters
Theresa May
Theresa May laughs during David Cameron's last ever PMQs as British Prime MinisterReuters
David Cameron
Britain's outgoing Prime Minister, David Cameron, speaks during Prime Minister's Questions in the House of CommonsReuters
David Cameron
David Cameron leaves the House of Commons after his last ever PMQa as British Prime MinisterBBC
David Cameron
A television presenter speaks to camera outside 10 Downing Street in LondonJustin Tallis/ AFP
David Cameron
A commuter reads a copy of the Evening Standard newspaper in central LondonDaniel Leal-Olivas/ Getty Images
David Cameron
Prime Minister David Cameron arrives at the rear of 10 Downing Street following his final Prime Minister's QuestionsChristopher Furlong/ Getty Images
David Cameron
Members of the public wait outside Downing Street to catch a glimpse of British Prime Minster David Cameron on his last day as Prime Minister in LondonJack Taylor/ Getty Images
David Cameron
A protestor dressed as new Prime Minister Theresa May is seen outside Downing StreetCarl Court/ Getty Images
David Cameron
Members of the public wait outside Downing Street to catch a glimpse of British Prime Minster David Cameron on his last day as Prime Minister in LondonJack Taylor/ Getty Images
David Cameron Theresa May
Prime Minister David Cameron speaks outside Downing Street with his wife Samantha and children Nancy, Arthur and Florence, before going to Buckingham Palace to tender his resignation to the QueenCarl Court/Getty Images
David Cameron Theresa May
David Cameron waves outside 10 Downing Street with his daughter Nancy, son Arthur, daughter Florence and his wife SamanthaOli Scarff/AFP
David Cameron Theresa May
The Camerons hug on the doorstep of 10 Downing StreetOli Scarff/AFP
David Cameron Theresa May
Prime Minister David Cameron and his wife Samantha leave 10 Downing Street to head to Buckingham Palace to formally tender his resignation to the QueenChristopher Furlong/Getty Images
David Cameron Theresa May
People wait outside Buckingham Palace for the arrival of outgoing Prime Minister David Cameron and incoming leader Theresa MayNeil Hall/Reuters
David Cameron Theresa May
A car carrying outgoing British prime minister David Cameron enters the gates of Buckingham Palace where he will tender his resignation to the QueenDaniel Leal-Olivas/AFP