Rep. Tim Ryan announced Thursday that he is ending his campaign for the Democratic presidential nomination and will run for a ninth term in the House.

Ryan (D-Ohio), who pitched himself as the candidate best poised to talk to working-class people and take back Rust Belt states from President Trump, failed to qualify for the third and fourth Democratic debates. He has a Dec. 11 deadline to file to run for reelection in his Ohio district.

“I am announcing today that I am withdrawing from the presidential campaign,” Ryan said in a video posted on Twitter. “After seven long months of hard work, I’ll be returning home to my family and friends and community in Ohio to run for reelection for my congressional seat.”

With Ryan’s exit, 17 candidates remain in the race for the Democratic presidential nomination.

On Capitol Hill, Ryan has a reputation as a moderate Democrat who has at times bucked his party’s leadership. In 2016, he waged an unsuccessful challenge against Rep. Nancy Pelosi (D-Calif.) for leader of the House Democratic caucus.

In the video announcing his departure from the presidential race, the 46-year-old Ohio Democrat said he was proud that his campaign had “given voice to the forgotten communities and the forgotten people in the United States.”

“I got into this race in April to really give voice to the forgotten people of our country: the workers who have been left behind, the businesses who have been left behind, the people who need health care or aren’t getting a quality education or are saddled by tremendous debt,” Ryan said. “I wanted to give voice to the forgotten communities that have been left behind by globalization and automation.”

Ryan was first elected to the House in 2002. He had previously served in the Ohio state Senate and was a congressional aide.