Ask members of the Washington diplomatic corps about the cables that Sir Kim Darroch, the British ambassador who resigned on Wednesday, wrote to London describing the dysfunction and chaos of the Trump administration, and their response is uniform: We wrote the same stuff.

“Yes, yes, everyone does,” Gérard Araud, who retired this spring as the French ambassador, said on Wednesday morning of his own missives from Washington. “But fortunately I knew that nothing would remain secret, so I sent them in a most confidential manner.”

So did Mr Darroch, who alone and with Mr Araud, tried to navigate the minefield of serving as the chief representative of longtime US allies to a president who does not think much of the value of alliances.

Mr Darroch submitted his resignation the morning after Boris Johnson, who is likely to become Britain’s next prime minister, notably declined during a televised debate to defend the diplomat and also refused to criticise Donald Trump.

In his resignation letter, Mr Darroch said the furore over his characterisation of the Trump administration made it impossible for him to carry out his role.

President Trump in Britain for state visit: In pictures Show all 40 1 /40 President Trump in Britain for state visit: In pictures President Trump in Britain for state visit: In pictures President Trump, Prime Minister Theresa May and Jeremy Hunt, the foreign secretary, pose for a photo during dinner at Winfield House, the US ambassador's residence in London AFP/Getty President Trump in Britain for state visit: In pictures President Trump and Prime Minister Theresa May share a laugh outside of Downing Street Reuters President Trump in Britain for state visit: In pictures President Trump walks with the Queen while other guests follow as they arrive at a state banquet in Buckingham Palace AFP/Getty President Trump in Britain for state visit: In pictures The red carpet is rolled out in front of Downing Street prior to the arrival of President Trump AP President Trump in Britain for state visit: In pictures President Trump meets with prime minister Theresa May for a business roundtable meeting at St James' Palace in London AP President Trump in Britain for state visit: In pictures President Trump makes a speech at the state banquet in Buckingham Palace Getty President Trump in Britain for state visit: In pictures President Trump and the Queen share a toast at the state banquet in Buckingham Palace Reuters President Trump in Britain for state visit: In pictures Philip May and Melania Trump attend a garden party for families of Downing Street staff on the second day of President Trump's visit Getty President Trump in Britain for state visit: In pictures President Trump meets with the Queen at Buckingham Palace as he arrives on the first day of his three-day state visit PA President Trump in Britain for state visit: In pictures A mixed crowd of supporters and detractors waits outside Buckingham Palace ahead of the arrival of President Trump Reuters President Trump in Britain for state visit: In pictures President Trump and the Queen view an exhibition of items from the Royal Collection that are of historical significance to the US PA President Trump in Britain for state visit: In pictures President Trump inspects an honour guard during a welcome ceremony in the garden of Buckingham Palace AP President Trump in Britain for state visit: In pictures The police block a road leading to Westminster Abbey, where Donald Trump is visiting on the first day of his state visit PA President Trump in Britain for state visit: In pictures President Trump walks with Prince Charles in the gardens of Buckingham Palace AFP/Getty President Trump in Britain for state visit: In pictures The McDonalds restaurant on Whitehall near to Westminster Abbey provides an excuse as to why they are not serving milkshakes today, though many have speculated that it is due to the recent trend of pouring milkshakes over right wing political figures Tom Batchelor / The Independent President Trump in Britain for state visit: In pictures Protesters with anti-Trump signs stand on Whitehall near Downing Street Tom Batchelor / The Independent President Trump in Britain for state visit: In pictures President Trump and First Lady Melania are welcomed by the Queen, Prince Charles and Camilla at Buckingham Palace EPA President Trump in Britain for state visit: In pictures King's Troop Royal Horse Artillery perform a gun salute to honour President Trump's state visit and to mark the 66th anniversary of Queen Elizabeth's coronation at Green Park Getty President Trump in Britain for state visit: In pictures A protester stands on Whitehall near Downing Street holding a sign with an anti-Trump message Tom Batchelor / The Independent President Trump in Britain for state visit: In pictures A supporter welcomes the president's visit on Whitehall near Downing Street Tom Batchelor / The Independent President Trump in Britain for state visit: In pictures A miniature Trump balloon in the protest on Whitehall near Downing Street Tom Batchelor / The Independent President Trump in Britain for state visit: In pictures A protester wears a "No Trumps" card in his hat as he walks nearby to Buckingham Palace Getty President Trump in Britain for state visit: In pictures President Trump walks with Prince Charles and a Buckingham Palace guard as he is welcomed on the first day of his three-day state visit AFP/Getty President Trump in Britain for state visit: In pictures Dedicated pro-Trump and pro-Brexit campaigner Joseph Afrane awaits the president's arrival at Buckingham Palace Tom Batchelor / The Independent President Trump in Britain for state visit: In pictures Crowds watch as Marine One, the helicopter carrying President Trump, arrives at Buckingham Palace PA President Trump in Britain for state visit: In pictures President Trump and First Lady Melania depart from Air Force one at Stansted Airport Reuters President Trump in Britain for state visit: In pictures Supporters of the president - and detractors of London mayor Sadiq Khan - await his arrival at Buckingham Palace Tom Batchelor / The Independent President Trump in Britain for state visit: In pictures President Donald Trump salutes an honour guard as he and first lady Melania Trump arrive at Stansted Airport AP President Trump in Britain for state visit: In pictures President Trump and First Lady Melania arrive at Winfield House, the US ambassadors residence in London AP President Trump in Britain for state visit: In pictures An anti-Trump protester awaits the president's arrival at Buckingham Palace Tom Batchelor / The Independent President Trump in Britain for state visit: In pictures Dedicated pro-Trump and pro-Brexit campaigner Joseph Afrane awaits the president's arrival at Buckingham Palace Tom Batchelor / The Independent President Trump in Britain for state visit: In pictures A protester mowed this message into a field nearby to Stansted Airport Born Eco President Trump in Britain for state visit: In pictures An anti-Trump protester awaits the president's arrival at Buckingham Palace Tom Batchelor / The Independent President Trump in Britain for state visit: In pictures A marching band parades down the Mall in front of Buckingham Palace ahead of the arrival of President Trump Reuters President Trump in Britain for state visit: In pictures Supporters of the president await his arrival at Buckingham Palace Tom Batchelor / The Independent President Trump in Britain for state visit: In pictures President Trump shakes hands with Jeremy Hunt, the foreign secretary Sky News President Trump in Britain for state visit: In pictures A policeman stands on the Mall, one of the roads leading to Buckingham Palace that is closed for the president's visit Reuters President Trump in Britain for state visit: In pictures Air Force One lands carrying U.S. President Donald Trump and First Lady Melania Trump arriving for their state visit to Britain Reuters President Trump in Britain for state visit: In pictures An honour guard await Trump's departure from Air Force One at Stansted Airport Sky News President Trump in Britain for state visit: In pictures President Trump and First Lady Melania depart from Air Force one at Stansted Airport AP

“Although my posting is not due to end until the end of this year, I believe in the current circumstances the responsible course is to allow the appointment of a new ambassador,” he wrote.

He came to that conclusion after he found himself in the vortex of what for years has been the definition of a classic Washington gaffe: He was caught in public saying something that is widely believed. It would have been stranger, his diplomatic colleagues said, if Mr Darroch had been writing cables describing the Trump White House as a smooth-running machine.

“It could have been any of us,” one ambassador, who is still serving and therefore spoke on the condition of anonymity, said on Wednesday.

Until Mr Darroch’s confidential cables appeared in The Daily Mail over the weekend, none of the major ambassadors in Washington had been denounced by Mr Trump as “wacky” or “very stupid’’ — descriptors that the envoy’s friends were quick to say hardly applied to one of Britain’s most sophisticated diplomats and former national security advisers.

Mr Johnson’s failure to back the ambassador was met with withering criticism from opponents, including his rival in the leadership race, Jeremy Hunt, the current foreign secretary. Mr Hunt called Mr Trump’s comments “unacceptable” and said he would keep Mr Darroch in his job.

“The fact that Sir Kim has been bullied out of his job because of Donald Trump’s tantrums and Boris Johnson’s pathetic lickspittle response is something that shames our country,” said Emily Thornberry, the Labour Party’s shadow foreign secretary. “It makes a laughing stock out of our government.”

She added, “Just imagine Churchill allowing this humiliating, servile, sycophantic indulgence of the American president’s ego to go unchallenged.”

With a few exceptions — including the ambassadors from Israel and the United Arab Emirates, who have supported Mr Trump’s every move — foreign diplomats in Washington these days describe living in something of a black hole.

Decisions that directly affect their nations’ trade relationships or troops are delivered with no notice. Their contacts in the State and Treasury departments as well as in Congress freely tell them they have little idea what decisions Mr Trump may make.

And the Trump administration has almost revelled in keeping foreign diplomats in the dark. While Mr Darroch, following in the tradition of his predecessors, hosted receptions in the British Embassy’s grand ballroom and weekend cocktail parties under tents on the lawn overlooking Embassy Row, few administration officials have attended.

There were occasional appearances by Ivanka Trump and Jared Kushner, the president’s elder daughter and son-in-law, who also serve as the president’s senior advisers and live with their children a few blocks from the embassy. A few other officials, like Kellyanne Conway, the president’s counsellor, showed up at Mr Darroch’s famous New Year’s parties, held amid the embassy’s stunning art collection.

But those were rare occasions. Mr Trump’s secretaries of state, Rex Tillerson and Mike Pompeo, did not appear to nurture the “special relationship” between the United States and Britain. Nor did Mike Pence, the vice president, who lives next door to the British Embassy.

Alan Duncan says Boris Johnson has 'thrown' Sir Kim Darroch 'under the bus' by not supporting him

While Mr Darroch often tried to reach out to the White House and the National Security Council, like most of the ambassadors from Nato nations, he never quite felt that he broke into the inner circle.

In December, when Mr Trump announced on Twitter that the United States was withdrawing forces from Syria — where both the British and the French have deployed troops, some of them dependent on US forces for transportation and intelligence — Mr Darroch was given no notice.

He called around the capital, reaching out to key members of Congress and national security reporters to glean information. To be fair, Mr Trump’s own national security team was also taken aback, and the defence secretary, Jim Mattis, resigned in protest. (Mr Trump later insisted Mr Mattis was fired.)

Traditionally, the British ambassador would be brought in for consultations with senior US officials about major decisions under consideration in the Middle East, or in dealing with Russia, where Britain’s Government Communications Headquarters — the British equivalent to the National Security Agency also known as GCHQ — often takes the lead in gathering intelligence.

But not in the Trump era.

All are examples of the chaos Mr Darroch had described to his successor as national security adviser, Mark Sedwill, in a 2017 memo that leaked on Saturday, leading to Mr Trump’s declaration that the ambassador from America’s oldest ally was, in effect, persona non grata.

Mr Johnson, the frontrunner in the prime minister’s race, said on Wednesday that he regretted Mr Darroch’s departure, and that whoever leaked the ambassador’s messages should be “run down, caught and eviscerated.”

There will be a new British ambassador, presumably appointed after parliament selects a new prime minister to replace the departing Theresa May, and seats a new government. But under current conditions, it is unclear whether that diplomat’s access will be much better.

A comment from the State Department about Mr Darroch’s departure on Wednesday blandly repeated its commitment to the special relationship.

The two countries “share a bond that is bigger than any individual,” the statement said, “and we look forward to continuing that partnership.”