Rep. Peter King, R-N.Y., arrives for the House Republican Conference meeting in the basement of the Capitol on Thursday, May 29, 2014.

Rep. Peter King, a moderate Republican who has represented a Long Island congressional district for nearly 30 years, announced Monday he won't seek reelection, presenting Democrats with a fresh suburban target as they defend their majority in 2020.

The decision comes days after voters flocked to Democratic candidates in state elections in Kentucky and Virginia, underscoring Republican vulnerability in a suburban revolt against President Donald Trump.

But in the latest indication that congressional Republicans are rallying behind Trump for now, King said he will oppose Democratic efforts to impeach Trump. King also opposed Bill Clinton's impeachment in 1998.

"In the coming weeks and during the next year I intend to vote against President Trump 's impeachment and will support the President's bid for re-election," King said.

The 14-term congressman, 75, said in a Facebook post that he's retiring because he wants "flexibility to spend more time" with his children and grandchildren "after 28 years of spending 4 days a week in Washington, D.C."

King, a former chair of the House Homeland Security Committee, has cultivated a reputation for bipartisanship while maintaining a hard line on immigration and crime. He is the longest-serving Republican member of New York's congressional delegation. Still, he won reelection in 2018 by just 6 percentage points.

King's keen political instincts and deserved reputation as a fighter for New York's interests gave him remarkable political resiliency; at one point, after the 2008 election that sent Barack Obama to the White House, he was the state's lone GOP member of Congress.

He teamed up with powerful Democrats such as Chuck Schumer to win a huge Superstorm Sandy aid package after the 2012 storm, despite foot-dragging by GOP leaders. On Monday, the Senate Democratic leader took to Twitter to lavish praise on King.

"Peter King stood head & shoulders above everyone else," Schumer wrote. "He's fiercely loved America, Long Island, and his Irish heritage and left a lasting mark on all 3."

His district includes once-reliably GOP territory in southwestern Suffolk County and a portion of Nassau County, about an hour's drive east of Manhattan. It went narrowly for Trump in 2016.

Democrats seem certain to target the district in 2020. Many suburban districts around the country have been moving steadily toward Democrats as moderate, well-educated voters swing away from the polarizing president.

Twenty House Republicans have announced they will not seek reelection. Three other GOP lawmakers have resigned and already left Congress.

House Democrats retook the majority in 2018, and are looking to defend their majority and grab new seats in suburban districts in what they see as a backlash against Trump.

Only a handful of the Republican-held districts being vacated by retirements are expected to be seriously competitive next year. But King's district will be one of them, underscoring GOP vulnerability in suburban areas, spotlighted last week as suburban voters in Virginia and Kentucky flocked to Democratic candidates in elections for state offices.