Former Defense Secretary James Mattis mocks Trump for criticizing him during "meltdown" (VIDEO)

Former Secretary of Defense James Mattis responded to President Donald Trump calling him "the world's most overrated general" with Congressional leaders at the Al Smith Memorial Foundation dinner on Thursday.

"You know why? He wasn’t tough enough," Trump said, according to the aides. "I captured ISIS. Mattis said it would take two years. I captured them in one month."

It was leaked that Trump made the comment about Mattis just before Nancy Pelosi and Chuck Schumer walked out of a meeting where Trump was apparently engaging in a "meltdown."

“I’m not just an overrated general. I’m the greatest, the world’s most overrated."

"I'm honored to be considered that by Donald Trump because he also called Meryl Streep an overrated actress. So I guess I'm the Meryl Streep of generals, and frankly that sounds pretty good to me,” Mattis told the crowd.

“And you do have to admit that between me and Meryl, at least we’ve had some victories,” he said jokingly.

Mattis resigned as Defense Secretary last December shortly after Trump announced plans to pull troops out of Syria. He saw it as a betrayal of decades of American policy.

"You can pull your troops out, as President Obama learned the hard way, out of Iraq, but the 'enemy gets the vote,' as we say in the military," Mattis said. "And in this case, if we don't keep the pressure on them, ISIS will resurge. It's — it's absolutely a given that they will come back."

Up until that time Trump had always praised Mattis but had to stop once the general publicly disagreed with him on a key foreign policy of his.