An American judge has been filmed telling new US citizens they "should go to another country" if they do not like President-elect Donald Trump.

Judge John Primomo, a federal magistrate judge in San Antonio, Texas, made the comments while presiding over a naturalisation ceremony at the Institute of Texan Cultures on Thursday.

At the event those seeking naturalisation took an oath of allegiance to officially complete the process of becoming a US citizen.

In footage obtained by KENS 5 News, Judge Primomo can be heard telling the new citizens: "I can assure you that whether you voted for him or you did not vote for him, if you are a citizen of the United States, he is your President.

"He will be your president and if you do not like that, you need to go to another country."

Mr Trump made hard line immigration policies a central part of his presidential campaign, including a proposal to build a wall along the US and Mexican border and calling for a “total and complete shutdown” of the entry of Muslims to the United States “until out country’s representatives can figure out what is going on.”

In an interview with CBS Mr Trump said he would deport two to three million undocumented immigrants “immediately” on taking office.

Donald Trump's most controversial quotes Show all 14 1 /14 Donald Trump's most controversial quotes Donald Trump's most controversial quotes On Isis: "Some of the candidates, they went in and didn’t know the air conditioner didn’t work and sweated like dogs, and they didn’t know the room was too big because they didn’t have anybody there. How are they going to beat ISIS?" Getty Donald Trump's most controversial quotes On immigration: "I will build a great wall — and nobody builds walls better than me, believe me —and I’ll build them very inexpensively. I will build a great, great wall on our southern border, and I will make Mexico pay for that wall. Mark my words." Reuters Donald Trump's most controversial quotes On Free Trade: "Free trade is terrible. Free trade can be wonderful if you have smart people. But we have stupid people." PAUL J. RICHARDS | AFP | Getty Images Donald Trump's most controversial quotes On Mexicans: "When Mexico sends its people, they’re not sending their best. They’re sending people that have lots of problems. They’re bringing drugs. They’re bringing crime. They’re rapists." Getty Donald Trump's most controversial quotes On China: "I just sold an apartment for $15 million to somebody from China. Am I supposed to dislike them?... I love China. The biggest bank in the world is from China. You know where their United States headquarters is located? In this building, in Trump Tower." Getty Images Donald Trump's most controversial quotes On work: "If you're interested in 'balancing' work and pleasure, stop trying to balance them. Instead make your work more pleasurable." AP Donald Trump's most controversial quotes On success: "What separates the winners from the losers is how a person reacts to each new twist of fate." Donald Trump's most controversial quotes On life: "Everything in life is luck." AFP Donald Trump's most controversial quotes On ambition: "You have to think anyway, so why not think big?" Getty Images Donald Trump's most controversial quotes On his opponents: "Bush is totally in favour of Common Core. I don't see how he can possibly get the nomination. He's weak on immigration. He's in favour of Common Core. How the hell can you vote for this guy? You just can't do it." Reuters Donald Trump's most controversial quotes On Obamacare: "You have to be hit by a tractor, literally, a tractor, to use it, because the deductibles are so high. It's virtually useless. And remember the $5 billion web site?... I have so many web sites, I have them all over the place. I hire people, they do a web site. It costs me $3." Getty Images Donald Trump's most controversial quotes On Barack Obama: "Obama is going to be out playing golf. He might be on one of my courses. I would invite him. I have the best courses in the world. I have one right next to the White House." PA Donald Trump's most controversial quotes On himself: "Love him or hate him, Trump is a man who is certain about what he wants and sets out to get it, no holds barred. Women find his power almost as much of a turn-on as his money." Getty Images Donald Trump's most controversial quotes On America: "The American Dream is dead. But if I get elected president I will bring it back bigger and better and stronger than ever before and we will make America great again." GETTY

Millions of protesters took to the streets in major cities, including Los Angeles, New York, and Chicago, after election night to protest over Mr Trump's defeat of Hillary Clinton and dissenters used the protests to rebuke the controversial proposals surrounding immigration promoted by the Trump campaign.

Judge Primomo told KENS 5 News that his comments were intended to be unifying and not political, adding that he did not vote for Mr Trump.