|On 12 June 2008, Davis resigned from the Shadow Cabinet and announced his resignation as an MP, in order to force a by-election, and cause a wider debate on the single
issue of what he believed to be the erosion of civil liberties. On 18 June 2008, he resigned from the House of Commons. He stood as the Conservative Party candidate for his
current seat in the subsequent by-election.
He won reelection with 72% of the vote, breaking several voting records in the UK, however, neither the Labour Party nor the Liberal Democrats put up a candidate.
At the time of his resignation the Labour MP Andy Burnham made a speech which was widely interpreted as falsely implying an inappropriate relationship between Davis and
the then Director of Liberty, Shami Chakrabarti. Burnham was forced to issue a public apology under threat of legal action. Wikipedia
Further details here.