Representative John Conyers Jr., an advocate of liberal causes for five decades and the longest-serving African-American in the history of Congress, died on Sunday at his home in Detroit. He was 90.

His death was confirmed by a family spokeswoman, Holly Baird.

Mr. Conyers, a Democrat, resigned in 2017 after accusations of unwelcome sexual advances by two women. His lawyers denied the accusations, but both Paul Ryan, a Republican and then the speaker of the House, and Nancy Pelosi, the House Democratic leader at the time and the current speaker, found the complaints credible and demanded that he step down.

Mr. Conyers was the only member of the House Judiciary Committee to participate in impeachment inquiries against both Presidents Richard M. Nixon and Bill Clinton.

In 1974, he said impeachment of Mr. Nixon was necessary “to restore to our government the proper balance of constitutional power and to serve notice on all future presidents that such abuse of power will never again be tolerated.”