New York Sen. Kirsten Gillibrand has ended her campaign for president.

Gillibrand announced her exit from the race via a video posted Wednesday to Twitter.

"Today, I am ending my campaign for president," said text accompanying the video. "I am so proud of this team and all we've accomplished. But I think it's important to know how you can best serve. To our supporters: Thank you, from the bottom of my heart. Now, let's go beat Donald Trump and win back the Senate."

Gillibrand entered the presidential race in March. She worked as an attorney for more than a decade before being elected to the U.S. House of Representatives, and has represented the state's 20th Congressional District in the House since 2009.

The senator's departure comes three weeks before the third Democratic debate, in which Gillibrand had not qualified to participate, NPR reported.

There are now 20 active candidates in the Democratic primary race.