President Trump Donald John TrumpOmar fires back at Trump over rally remarks: 'This is my country' Pelosi: Trump hurrying to fill SCOTUS seat so he can repeal ObamaCare Trump mocks Biden appearance, mask use ahead of first debate MORE declared a national emergency on Friday in order to build $8 billion in barriers on the U.S.-Mexico border. But just four years ago, he was slamming then-President Obama over the issuance of an executive action on immigration.

Trump said Obama's move could “certainly” lead to impeachment in an interview in 2014 with “Fox & Friends,” which was resurfaced by CNN’s KFile this week.

Trump was asked in November 2014 about Obama’s executive action to protect millions of immigrants without legal status from deportation.

ADVERTISEMENT

"Now he has to use executive action and this is a very, very dangerous thing that should be overwritten easily by the Supreme Court," Trump said. "So we're looking now at a situation, it should absolutely not pass muster in terms of constitutionality, but it depends on what these justices do."

Obama’s actions were “unconstitutional” and could be considered impeachable offenses, Trump said.

"Well, he certainly did something that was unconstitutional," Trump said.

Trump made similar remarks on Twitter at the time, which also resurfaced Thursday.

“Repubs must not allow Pres Obama to subvert the Constitution of the US for his own benefit & because he is unable to negotiate w/ Congress,” Trump wrote on Nov. 20, 2014.