UK ambassador to US quits days after leaked cables on Trump

In this Friday, Oct. 20, 2017 photo, British Ambassador Kim Darroch hosts a National Economists Club event at the British Embassy in Washington. Leake...

In this Friday, Oct. 20, 2017 photo, British Ambassador Kim Darroch hosts a National Economists Club event at the British Embassy in Washington. Leake...

President Donald Trump listens as Qatar's Emir Sheikh Tamim Bin Hamad Al-Thani speaks during a meeting in the Oval Office of the White House, Tuesday,...

President Donald Trump listens as Qatar's Emir Sheikh Tamim Bin Hamad Al-Thani speaks during a meeting in the Oval Office of the White House, Tuesday,...

In this Friday, Oct. 20, 2017 photo, British Ambassador Kim Darroch hosts a National Economists Club event at the British Embassy in Washington. Leake...

In this Friday, Oct. 20, 2017 photo, British Ambassador Kim Darroch hosts a National Economists Club event at the British Embassy in Washington. Leake...

LONDON (AP) — Britain's ambassador to the United States resigned Wednesday, just days after diplomatic cables criticizing President Donald Trump caused embarrassment to two countries that often celebrate having a "special relationship."

The resignation of Kim Darroch came a day after Trump lashed out at him on Twitter describing him as "wacky" and a "pompous fool" after leaked documents revealed the envoy's dim view of Trump's administration.

"I am grateful to all those in the UK and the US, who have offered their support during this difficult few days," Darroch said in a letter. "This has brought home to me the depth of friendship and close ties between our two countries. I have been deeply touched."

Prime Minister Theresa May said it was a "matter of regret" that Darroch resigned.

Darroch's forthright, unfiltered views on the U.S. administration — meant for a limited audience and discreet review — appeared in leaked diplomatic documents that were published in Britain's Mail on Sunday newspaper.

Trump combined criticism of Darroch with a broadside at May, chiding the British leader for failing to get her Brexit deal with the European Union through Parliament.

"I told @theresa_may how to do that deal, but she went her own foolish way-was unable to get it done. A disaster!" Trump tweeted Tuesday. "I don't know the Ambassador but have been told he is a pompous fool."

The resignation offers May a chance to replace him before she leaves office at the end of July.