Longtime Congressman Charlie Rangel announced Wednesday that he plans to retire at the end of his 23rd term in the House of Representatives.

In an interview Wednesday, Rangel said that he wanted to remain in office through the end of President Obama's term in the White House.

"I wanted so badly to complete the last year with President Obama, and even though they never gave him a fair opportunity to do all the things that I really had dreamed that we could do together, I would be so annoyed with myself had I retired a couple of years ago," Rangel said.

Rangel was among one of the early supporters of former Secretary of State Hillary Clinton for the Democratic nomination. He endorsed her in November 2014, and pointed to her support for African-Americans over Sen. Bernie Sanders.

"Bernie doesn't know enough of us," Rangel said about Sanders' relationship with African-Americans.

In 2014, Rangel survived a tough re-election battle and defeated opponent Adriano Espaillat by only four percent (47-43 percent).

Rangel had chaired the House Ways & Means Committee, but was forced to resign that post in the midst of an ethics scandal involving his failure to comply with tax laws. The House Ethics Committee eventually found him guilty of 11 ethics violations and censured him, which Rangel responded to by delivering a speech in which he said the process took to long.

"I am not going away," he said. "I am here."