U.S. Representative Justin Amash, a frequent critic of President Donald Trump, quit the Republican Party on Thursday, saying politicians have become more loyal to their parties than to the American people.


The congressman from Michigan, the first Republican in Congress to say openly that the president has engaged in impeachable behavior, said he has become disenchanted with party politics and frightened by its consequences.


“The two-party system has evolved into an existential threat to American principles and institutions,” he wrote in a Washington Post opinion piece published on the U.S. Independence Day holiday.


“Instead of acting as an independent branch of government and serving as a check on the executive branch, congressional leaders of both parties expect the House and Senate to act in obedience or opposition to the president and their colleagues on a partisan basis,” Amash wrote.


“Modern politics is trapped in a partisan death spiral, but there is an escape.”


A member of Congress since 2011, Amash, 39, made some high-profile decisions in recent months that chronicled his growing disdain for Trump and subsequent drift from the party.


But it was his decision to speak out on Special Counsel Robert Mueller’s report on Russian activities during the 2016 presidential election that drew the president’s fury - and a prompt Republican primary challenge.


Amash said in May that the Mueller report showed Trump had obstructed justice, bucking his party and joining Democrats in castigating the president for his actions. “President Trump has engaged in impeachable conduct,” he said.


Amash’s comments on the Mueller report echoed the conclusions of many Democrats, but Democrats are divided about impeachment. Most Republicans are still standing by the president at a time of economic growth, turbulent markets and global trade tensions.


Trump quickly returned fire by calling Amash a lightweight and a loser. Soon after, Jim Lower, a Michigan state legislator who described himself as “pro-Trump,” said he would challenge Amash in the 2020 congressional race in Michigan, a state Trump won in 2016.


The president welcomed Amash’s news in an acrimonious Twitter post on Thursday.


“Great news for the Republican Party as one of the dumbest & most disloyal men in Congress is ‘quitting’ the Party. No Collusion, No Obstruction! Knew he couldn’t get the nomination to run again in the Great State of Michigan,” he said.


Amash said in his opinion piece that he believed that most Americans are not rigidly partisan and do not feel well represented by either party.


In February, he became the lone Republican to co-sponsor a resolution in the U.S. House of Representatives to reject the emergency Trump declared at the U.S.-Mexico border to build a wall there, in a stinging reprimand to the president.


Last month, Amash left the conservative House Freedom Caucus he helped found, whose members usually defend Trump. Amash has also signaled he would consider running as a libertarian against Trump in 2020, but made no mention of that on Thursday.


“Today, I am declaring my independence and leaving the Republican Party. No matter your circumstance, I’m asking you to join me in rejecting the partisan loyalties and rhetoric that divide and dehumanize us,” Amash said.