President Trump blasted the contestants in the second Democratic presidential debate on Thursday when they all declared their support for health care coverage for undocumented immigrants.

All of the candidates — including former Vice President Joe Biden, Sen. Kamala Harris and South Bend, Indiana, Mayor Pete Buttigieg — raised their hands when asked by an NBC moderator if they would support a health care plan that would cover undocumented immigrants.

“All Democrats just raised their hands for giving millions of illegal aliens unlimited healthcare,” Trump wrote on Twitter from Japan, where he is to attend the G20 Summit.

“How about taking care of American Citizens first!? That’s the end of that race!”

Trump stayed largely quiet during the first Democratic presidential debate on Wednesday night, sending just two tweets during the event.

In his first tweet Wednesday, Trump yawned at the content.

“BORING!” Trump wrote during the first contest on Wednesday, which featured Democratic hopefuls Mayor Bill de Blasio, Sen. Cory Booker, Sen. Elizabeth Warren and Beto O’Rourke.

Later, as he met with German Chancellor Angela Merkel, Trump again admitted that he had sneaked a peek at the television.

“Unfortunately, they didn’t discuss what they’re giving to American citizens,” he said of the Dems. “That’s not a good thing.”

He then explained to the chancellor, “You know they have a debate going on . . . They definitely have plenty of candidates, that’s about it. So I look forward to spending time with you rather than watching.”