Donald Trump lit into President Barack Obama on Friday in Iowa, calling his claim that a $400 million cash payment to Iran wasn't a ransom for four hostages 'a lie.'

And Trump compared the White House's official account of the January cash shipment to promises the president made before his Affordable Care Act was implemented.

The White house paid Iran '$400 million, the same day as the hostage release, and now they say, "It had nothing to do with it, just coincidence",' Trump told an audience of about 2,000 in Des Moines, Iowa.

'Just like he said 24 times, "You can keep your doctor for Obamacare, keep your plan, keep your doctor." Over and over and over again!'

LIAR, LIAR, PANTS ON FIRE: Donald Trump said when President Barack Obama denied paying a $400 million hostage ransom to Iran, it was 'just like the Obamacare lie'

'YOU CAN KEEP YOUR DOCTOR': Obama famously promised dozens of times that his health insurance overhaul would allow Americans to keep their existing health care, but it didn't turn out that way

Obama famously pledged that Americans wouldn't have to switch doctors or insurance plans once the Obamacare system took effect.

But tens of millions found themselves forced to do just that as physicians opted out of the government-brokered insurance policies and existing plans failed to cover services the government considered mandatory.

'Obama said yesterday, "It had nothing to do with it!"' Trump boomed, referring to the president's insistence that the $400 million cash payment was unrelated to the hostages' release.

'It's another lie. It's just like the Obamacare lie. It's just like so many other lies. It's another lie!'

'Same day. Just a coincidence, right?' he mocked.

Obama claimed Thursday in a press conference that 'we do not pay ransom for hostages.'

'We do not pay ransom. We didn't here,' he told reporters. 'And we don't – we won’t in the future – precisely because if we did, then we would start encouraging Americans to be targeted.'

Trump claimed the money Obama sent to Tehran 'will be spent to attack our friends and allies. Terror.'

He also predicted that 'a lot of it is going to to their pockets.'

CASH DROP: An Iranian propaganda film broadcast in February included this shipping pallet stacked with cash and a suggestion that it was the money Obama sent to Tehran

GOING HOME: Four Iranian hostages including a journalist, a U.S. Marine and a pastor were released after the money arrived on January 17

Trump cited an account by pastor Saeed Abedini, one of the captives, who said he and the others were held on a plane and not permitted to leave Tehran until a plane – presumably the money – arrived first.

'So the $400 million comes in the same day as the hostages go out, or very close,' he said, 'and the hostages – do you all remember when they waited and waited, and nobody could understand, why were they waiting?'

A man in the audience shouted: "They were waiting for you, Mr. Trump!"

'They were waiting for me!; he chuckled. 'They wouldn't be getting four hundred [million], I'll tell you right now. They wouldn't be getting 10 cents.'

Trump also lashed out at Democratic nominee Hillary Clinton for 'lying' to the American public about her now-infamous email server, calling her 'pathological' and 'the queen of corruption.'

'She lied about it over and over and over again!' he said.

TRUST ME: Obama pledged dozens of times that 'You can keep your doctor' under Obamacare

DYNAMIC DUO? Trump and his vice presidential running make Mike Pence, the governor of Indiana, appeared together in Des Moines, Iowa on Friday

Trump said history will show that 'getting out of trouble' would be remembered as Clinton's greatest accomplishment.

But then he stopped and lowered his voice conspiratorially: 'Maybe it's not over yet.'

Trump suggested that the 33,000 emails Clinton deleted might resurface at some point.