Sir Ivan was appointed as permanent representative in 2013 by former prime minister David Cameron.
A government spokesperson said: "Sir Ivan Rogers has resigned a few months early as UK Permanent Representative to the European Union.
"Sir Ivan has taken this decision now to enable a successor to be appointed before the UK invokes Article 50 by the end of March."
His decision could cast Britain's negotiating position into disarray just months before formal Brexit talks are due to begin, according to the Financial Times. Sir Ivan is one of Britain's most experienced EU negotiators.
Comment: More from the FT article:
Since his appointment in late 2013, Sir Ivan was one of the leading advisers in former prime minister David Cameron's pre-referendum renegotiation of EU membership terms and in his successor Theresa May's preparations for Brexit.
While he had a longstanding relationship with Mrs. May and was consulted by her on the government's Brexit strategy, Sir Ivan's relations with some of the prime minister's team began to deteriorate in recent months.
This culminated in December with a leak to the BBC of Sir Ivan's advice to the prime minister suggesting it could take until the early mid-2020s for the EU to agree and ratify a comprehensive trade deal with Britain.
Although the advice was months old and reflected Sir Ivan's conversations with senior EU officials, the leak prompted a series of negative articles in the pro-Brexit newspapers. The Daily Mail reported that "knives were out" for Britain's ambassador to the EU because of his "gloomy pessimism".
Sir Ivan will leave the position a few months earlier than his original departure date of November.
Labour MP Hilary Benn, who chairs the Brexit select committee, said that the resignation had come at a "crucial" time and that a replacement must be found quickly. He said the shock resignation was "not a good thing" for the UK.
Sir Ivan has a longstanding relationship with prime minister Theresa May and was consulted by her on Brexit strategy. However, his relationship with some of her team reportedly began to deteriorate in recent months.
This culminated in December with a leak to the BBC of Sir Ivan's advice to May suggesting it could take until the early to mid-2020s for the EU to agree and ratify a trade deal with Britain.
May says she will trigger formal talks between the UK and the EU by the end of March.
Since May's appointment as PM, Sir Ivan has played down the prospects of a "soft Brexit" in private conversations with other officials and EU ambassadors.
He has long seen the most likely scenario as Britain leaving the EU single market and customs union, and the biggest questions being whether this would be achieved through an orderly and managed transition or via a sharp exit with no withdrawal agreement with the EU.
Arron Banks, the chairman of Leave.EU, has welcomed Sir Ivan's surprise resignation, telling the Guardian: "This is a man who claimed it could take up to 10 years to agree a Brexit deal.
"He is far too much of a pessimist and yet another of the establishment's pro-EU old guard. He has at least done the honourable thing in resigning."




guy's position. If you are about to negotiate a deal you can't enforce or implement without losing and thus be vilified for it , why do it in the first place ? The British got themselves into hot water (again).