When Donald Trump addressed the nation on Monday night, presenting his Afghanistan strategy, he admitted that it was likely to disappoint his supporters.
Mr Trump has long championed withdrawing from Afghanistan, repeatedly attacking Barack Obama for the continued US presence in the region.
Yet in a surprise move on Monday night, he claimed that a withdrawal of personnel would leave a power vacuum that to be filled by terrorists, as has happened in Iraq, and committed to more troops.
In August 2010 US troop numbers peaked at 100,000, but Mr Obama, despite repeated efforts to withdraw, failed to completely exit the country.
He handed over to Mr Trump with 8,400 troops. “My original instinct was to pull out - and, historically, I like following my instincts,” he said.
“But all my life I've heard that decisions are much different when you sit behind the desk in the Oval Office; in other words, when you're president of the United States.”
As ever with Mr Trump, his tweets came back to haunt him.
2011: 'I would get out of Afghanistan'
In 2011 Mr Trump appeared on the show of his friend, Bill O'Reilly, on Fox News.
"What I'm getting from you, though, is you would withdraw US troops out of Afghanistan?" asked O'Reilly.
Mr Trump replied: "Yes, I would."
O'Reilly asked whether they would mean the return of the Taliban.
"Well, they're going to come back anyway because they're really in Pakistan," said Mr Trump.
2012: 'Afghanistan is a complete waste'
Five years to the day before his Fort Myer speech, Mr Trump tweeted: “Why are we continuing to train these Afghanis who then shoot our soldiers in the back? Afghanistan is a complete waste. Time to come home!”
Why are we continuing to train these Afghanis who then shoot our soldiers in the back? Afghanistan is a complete waste. Time to come home!— Donald J. Trump (@realDonaldTrump) August 21, 2012
2013: 'Let's get out of Afghanistan'
A year later, in 2013, he continued his theme, stating: “Let’s get out of Afghanistan. Our troops are being killed by the Afghanis we train and we waste billions there. Nonsense! Rebuild the USA.”
In March 2013 James Mattis, Mr Trump’s current defence secretary, who at the time was the general leading the US military's Central Command, said that he recommended keeping 13,600 American troops in Afghanistan after 2013.
We should leave Afghanistan immediately. No more wasted lives. If we have to go back in, we go in hard & quick. Rebuild the US first.— Donald J. Trump (@realDonaldTrump) March 1, 2013
I agree with Pres. Obama on Afghanistan. We should have a speedy withdrawal. Why should we keep wasting our money -- rebuild the U.S.!— Donald J. Trump (@realDonaldTrump) January 14, 2013
2013: 'We have wasted an enormous amount of blood and treasure in Afghanistan'
Mr Trump disagreed, tweeting: “We have wasted an enormous amount of blood and treasure in Afghanistan. Their government has zero appreciation. Let's get out!”
In November 2013 Mr Obama again promised to bring the conflict to an end. "This winter, our troop levels in Afghanistan will be down to 34,000, and by this time next year, the transition to Afghan security will be nearly complete. The longest war in American history will end," he said.
We have wasted an enormous amount of blood and treasure in Afghanistan. Their government has zero appreciation. Let's get out!— Donald J. Trump (@realDonaldTrump) November 21, 2013
Do not allow our very stupid leaders to sign a deal that keeps us in Afghanistan through 2024-with all costs by U.S.A. MAKE AMERICA GREAT!— Donald J. Trump (@realDonaldTrump) November 21, 2013
He announced that instead of dropping the US troop level to 5,500, he would keep it at about 8,400 through the end of his term, saying his successor can determine the next move.
2016: Policy of 'intervention and chaos' must end
Afghanistan barely registered during the 2016 election campaign. But, before taking the reins of power, Mr Trump continued to talk in vague terms about reducing US presence.
He said at a December 2016 “thank you rally” in North Carolina that the policy of "intervention and chaos" must come to an end.
2017: 'A hasty withdrawal would create a vacuum for terrorists'
Yet on Monday he had changed his mind and committed more troops to Afghanistan. “The consequences of a rapid exit are both predictable and unacceptable,” he said.
“A hasty withdrawal would create a vacuum that terrorists, including ISIS and al Qaeda, would instantly fill.”
Mr Trump coupled his pledge with a demand for countries like Britain to do more and criticised Pakistan for not doing enough to tackle terrorist "safe havens".
"Pakistan has much to gain from partnering with our effort in Afghanistan. It has much to lose by continuing to harbour terrorists," he said.
He also warned the Afghan government that it should not view US support as a "blank check" and said America would work with them "as we see determination and progress".