United States citizens accused of terrorism should be tried by military tribunal at Guantánamo Bay, Cuba, according to Donald Trump — offering support for a proposal which, under current federal law, is illegal.

“I would say they could be tried there, that would be fine,” Trump told the Miami Herald in an interview Thursday.

Current law does not allow US citizens to be tried by military tribunal at the offshore military base, and constitutional experts and several GOP lawmakers, including Sen. John McCain, have spoken out in the past about trying US citizens in military court.

“I know that they want to try them in our regular court systems,” Trump said, referring to the Obama administration’s preference, “and I don’t like that at all.”

Trump praised the military base as a good place to keep terrorists. “I want to make sure that if we have radical Islamic terrorists, we have a very safe place to keep them and we have a word,” he said.

The mogul accused Obama of being soft on terrorists, adding: “Those are words our president won’t even issue. He’s allowing people to get out that are terrible people. He’s allowing a lot of people out of Guantánamo that should not be released.”

The Guantánamo base has housed detained foreign terrorists since the George W. Bush administration. In his first campaign for president, Barack Obama pledged to close the military base on the first day of his administration.