1 of 2 | Former Rep. Barney Frank speaks in 2022 during a signing ceremony for the Respect for Marriage Act, which requires the U.S. federal government to recognizing the validity of same-sex and interracial marriages in the United States, in the Rayburn Room of the U.S. Capitol in Washington, D.C. Frank died Tuesday at age 86. File Photo by Bonnie Cash/UPI | License Photo

May 20 (UPI) -- Barney Frank, a former Massachusetts congressman who was instrumental in overhauling the country's financial regulations and was one of the first openly gay members of Congress, died at his home in Maine. He was 86.

Frank had entered hospice care last month with congestive heart failure, The New York Times reported.

Rep. Nancy Pelosi, D-Calif., worked with Frank in Congress for decades. Pelosi called him "a real mentor" and said she learned a lot from him.

"He has been about idealism and pragmatism to get the job done," she told NBC News.