President Donald Trump slammed the Ninth Circuit Court of Appeals on the Thanksgiving Day, while on a call with U.S. troops based in Afghanistan.

'We got a lot of bad decisions from the Ninth Circuit, which has become a big thorn in our side. We always lose, and then you lose again and again, and you hopefully win at the Supreme Court, which we have done,' he said on a call with U.S. troops based in Afghanistan.

'It's a terrible thing when judges take over your protective services, when they tell you how to protect your border. It's a disgrace. So we're winning,' he added.

President Donald Trump slammed the Ninth Circuit Court of Appeals on the Thanksgiving Day, while on a call with U.S. troops based in Afghanistan

'It's a terrible thing when judges take over your protective services, when they tell you how to protect your border. It's a disgrace. So we're winning,' Trump said

The president was responding to a Air Force soldier in Afghanistan who told Trump troops there never want the Taliban or ISIS to reach American shores.

'Every airman here is dedicated to keeping this fight away from our shores. A stable Afghanistan is good for Afghanistan, but we do what we do for America,' the soldier told Trump.

'You said it better than anybody could have said. Keep them away from our shores. That's why we're doing the strong borders,' Trump told him.

He went on to praise the U.S. military, noting they were deployed at the border, and went on to talk about the importance of border security.

'I don't know if it's ever or certainly there's never been a presence like this, but we have a very powerful border right now,' Trump said. 'We have the fencing and things people don't even believe. We took old broken wall and we wrapped it with barb wire plus. I guess you could really call it barb wire plus. This is the ultimate. Nobody is getting through these walls.'

After he spoke to members of each of the U.S. five service branches, Trump took questions from reporters for nearly 30 minutes.

He slammed the Ninth Circuit yet again.

'Essentially they're legislating,' he said of the court which put a hold on his asylum ban on illegal immigrants.

‘We are doing really well considering the laws are a disaster. And if we had the right laws, it would be a lot less expensive and we would do it a lot easier, but we don't have the right laws and we have people interpreting the laws and they always give us a bad interpretation. So hopefully we have shown some light on the Ninth Circuit,’ he said.

Trump also acknowledged his spat with Supreme Court Chief Justice John Roberts.

‘I know that Chief justice Roberts, John Roberts, has been speaking a little bit about it. And I think - I have a lot of respect for him. I like him and respect him, but I think we have to use some common sense. It's Ninth Circuit, everybody knows it, it's totally out of control. What they're doing, what they're saying, the opinions are very unfair to law enforcement. They're very unfair to our military. And they're very unfair, most importantly, to the people of our country,’ he said.

Trump acknowledged his spat with Supreme Court Justice John Roberts, who administrated the oath of office at his January inauguration

Trump had a script of papers in front of him when he spoke to the troops on the phone

Trump had launched another attack on the 9th Circuit earlier in the day and dismissed Chief Justice Roberts' strong rebuke one day on from their extraordinary row over judicial independence.

Labeling the 9th Circuit a 'complete and total disaster' that is 'out of control', the president demanded in a tweet judges not be allowed to 'legislate security' in his early morning attack on Thanksgiving.

The new criticism comes one day after the almost unprecedented row between the Supreme Court Chief Justice and the president of the United States following a strong rebuke from Roberts over Trump calling the 9th Circuit 'Obama judges'.

President Trump made calls to U.S. troops on Thanksgiving Day

Doubling down: Trump dismissed the criticism from Chief Justice Roberts and intensified his assault on the 9th Circuit

Demands: Trump is furious with the 9th Circuit and believes it to be too liberal and affects the nation's security

The new criticism comes one day after the almost unprecedented row between the Supreme Court Chief Justice and the president of the United States following a strong rebuke from Roberts over Trump calling the 9th Circuit 'Obama judges'.

The row began earlier this week when the president complained about a different judge, Obama-appointed US District Judge Jon Tigar, who has ruled against him in his attempt to stop illegal immigrants applying for asylum once they cross the border.

Tigar said the president's 'scope' did not reach far enough for him to 'rewrite' immigration laws.

When asked about Tigar's decision on Tuesday, the president took aim at the liberal-leaning 9th Circuit Court of Appeals which previously also ruled against his travel ban.

'Every case that gets filed in the Ninth Circuit, we get beaten. And then we end up having to go to the Supreme Court, like the travel ban, and we won,' Trump said.

Row continues: President Trump and Supreme Court Chief Justice have engaged in a extraordinary row over the 9th Circuit Court

U.S. District Judge Jon Tigar, a Barack Obama appointee whose courtroom is in San Francisco, struck down the administration's new asylum policy this week. That is what started Trump's complaints about an apparently politicized judicial system

He then said of Tigar: 'This was an Obama judge.'

Roberts, who is a Republican and was nominated to the Supreme Court by George W. Bush in 2005, weighed in angrily the next day, issuing a statement to say that politics played no part in the judicial system.

He said: 'We do not have Obama judges or Trump judges, Bush judges or Clinton judges.

'What we have is an extraordinary group of dedicated judges doing their level best to do equal right to those appearing before them.

'The independent judiciary is something we should all be thankful for.'

Trump hit back on Twitter afterwards, saying: 'Sorry Chief Justice John Roberts, but you do indeed have 'Obama judges', and they have a much different point of view than the people who are charged with the safety of our country.'

Roberts (left) is the highest ranking jurist on the Supreme Court. His remarks this week signal his first criticism of the president. They are pictured with Trump's controversial appointee Brett M. Kavanaugh (right) after he was sworn in in November