President Trump vowed Saturday to get his controversial travel ban reinstated after a federal judge struck it down.

“The opinion of this so-called judge, which essentially takes law-enforcement away from our country, is ridiculous and will be overturned!” he thundered in an 8:12 a.m.tweet.

Judge James Robart, a federal judge in Seattle appointed by President George W. Bush, on Friday overturned the restrictions Trump imposed Jan. 27 on travelers from seven predominately Muslim nations.

Trump said Robart’s order endangers Americans.

“When a country is no longer able to say who can, and who cannot , come in & out, especially for reasons of safety &.security – big trouble!” he wrote in an earlier Twitter missive. “Interesting that certain Middle-Eastern countries agree with the ban. They know if certain people are allowed in it’s death & destruction!”

News reports have described the public response from Middle Eastern countries not covered by the ban as muted.

Trump’s controversial executive order temporarily barred citizens Iraq, Iran, Libya, Somalia, Syria, Sudan and Yemen, from entering the United States.

The order also indefinitely stopped the processing of Syrian refugees.

The ban quickly created chaos at the nation’s airports as travelers who were in transit were detained after they landed.

Trump’s tweets were his first comments on Robart’s decision, which the White House promised to fight in court.

Later on Saturday morning, Trump took to Twitter again to rail against The New York Times.

“After being forced to apologize for its bad and inaccurate coverage of me after winning the election, the FAKE NEWS @nytimes is still lost!” said the 8:39 a.m. tweet.

It was unclear why Trump believes The Times is “still lost.”