BBC:-Last week Donald Trump said he was going to “come after” congressman Mark Meadows, the head of the House Freedom Caucus, if he didn’t support the American Health Care Act. White House Press Secretary Sean Spicer later said the president was joking.

No one is laughing now.

The House Freedom Caucus, the collection of libertarian-leaning conservatives who helped sink the Trump-backed American Health Care Act last week, appears to be as much of a political enemy for the president as the Democratic Party.

“The Freedom Caucus will hurt the entire Republican agenda if they don’t get on the team, & fast,” Mr Trump tweeted on Thursday morning. “We must fight them, & Dems, in 2018!”

The tweet was the latest, most pointed, shot at the Freedom Caucus since the healthcare bill collapsed last Friday. In his initial remarks that afternoon, after the bill was unceremoniously pulled from consideration in the midst of being debated in the House, Mr Trump placed the blame squarely on the Democrats.

“We had no votes from the Democrats,” the president lamented. “They weren’t going to give us a single vote, so it’s a very difficult thing to do.”

He also said he had no hard feelings toward the Freedom Caucus, who he described as “friends of mine”.

Over the past week, however, his attitude has shifted.

On Sunday the president tweeted that the Freedom Caucus, along with several grass-roots conservative groups, had “saved” Obamacare and the women’s health group Planned Parenthood, whose clinics provide abortion services.

The next day he wrote the Freedom Caucus “was able to snatch defeat from the jaws of victory”.

Now it appears the president is preparing for all-out war against the intransigent congressmen – and it’s a fight they seem willing to join. Shortly after Mr Trump fired his Thursday morning broadside, Justin Amash, a prominent member of the Freedom Caucus, offered his reply.

“It didn’t take long for the swamp to drain Donald Trump,” he tweeted. “No shame, Mr President. Almost everyone succumbs to the DC Establishment.”

The fissures appearing beneath Mr Trump’s feet as he tries to lead the Republican Party are not new, of course. Speaker of the House John Boehner, who was the top Republican officeholder during much of Barack Obama’s presidency, constantly grappled with rebellious House members right up until he was forced from the speakership in September 2015.

For the first two months of the Trump presidency, however, it seemed like Republicans – finally in control of all the levers of power in Washington – might be able to present a unified front in advancing an ambitious agenda that included healthcare and tax reform, sweeping cuts in discretionary government programmes, and boosts in military and infrastructure spending.

Last week’s healthcare fiasco has cast all of that into doubt, with a president unmoored from his own party sending out a number of conflicting messages.

After lambasting Democrats last Friday, Mr Trump has made several overtures to the opposition party. On Monday he tweeted the Democrats will be ready to deal once “Obamacare folds”.