A gay man is suing the Social Security Administration after being denied spousal survivor benefits when his husband died in 2014.

Michael Ely and James Taylor of Arizona were together since 1971, when Michael was 18 and James was 20.

“My husband was the love of my life,” Michael said. “Like other committed couples, we built a life together and cared for each other in sickness and in health.”

In 2014, they got married just after Arizona’s ban on same-sex couples marrying was struck down by a court. About six months later, Taylor died of cancer.

Michael, who took care of James when he was sick, applied to get James’s Social Security benefits. They were married, James paid into Social Security his whole life, and Michael is now 65-years-old.

Related: Gay widower denied Social Security survivor benefits

The only problem? The Social Security Administration requires couples to be married for nine months before they can access survivor benefits, a requirement that Michael and James were legally barred from meeting.

“Even though we’d been together for 43 years, I’m barred from receiving the same benefits as other widowers, even though my husband had worked hard for 40-plus years and paid into the social security system with every paycheck,” Michael said.

“The federal government is requiring surviving same-sex spouses like Michael to pass an impossible test to access benefits earned through a lifetime of work,” said Peter Renn of Lambda Legal, which is representing Michael in his federal lawsuit against the Social Security Administration.

“These benefits are as essential to the financial security of surviving same-sex spouses in their retirement years as they are to heterosexual surviving spouses. But the government is holding their benefits hostage and imposing impossible-to-satisfy terms for their release.”