Anger mixed with sorrow Wednesday at the funeral for a Bronx father who died from an asthma attack just days before his $124 million false imprisonment lawsuit was set to start.

Friends and family said William Lopez, 55, was trying his best to move on after 23 years on a bogus murder charge, and had joined the fight to free others who were wrongly convicted.

“He was trying to restore his life and give something back,” said Lopez’ brother, Eugene. “To have this happen is just devastating. I’m still hurting. I’m still angry. It happened to him, and it continues to happen to a lot of people.”

​The tragic turn in Lopez’s tale was first reported Monday by The Post.

​Among the mourners at the R.G. Ortiz Funeral Home in the Bronx was Lopez’ 83-year-old mother, who traveled from Puerto Rico for the funeral.

Lopez body will be flown to Puerto Rico Thursday for burial.

Also at the funeral was Lopez’ wife Alice, who married him in prison, and his daughter Crystal, who was 14-months-old when Lopez went to jail.

Lawyers said the family intends to proceed with the lawsuit.

Lopez had been convicted on flimsy evidence for the 1989 shotgun killing of a suspected narcotics dealer who was gunned down after two men stormed a drug den in Brighton Beach, Brooklyn.

No murder weapon or forensic evidence was found at the scene, so prosecutors relied on the testimony of two shady witnesses including one who had just finished a crack binge when the murder took place. She later recanted.

Lopez was set free in January, 2013.

“This a cruel irony of life,” said Jeffrey Deskovic, a friend and advocate whose foundation worked to free Lopez from prison.

Deskovic, himself, served 16 years in jail on a wrongful rape and murder conviction, until DNA cleared him.

“That he was only free for a year and a half after trying to win his freedom for 23 years, it was really shocking. Bill and I had a lot of plans.”