The family of Kalief Browder, the young man who killed himself after spending three years in jail on Rikers Island, reached a $3.3 million settlement with New York City on Thursday, the city Law Department said.

“Kalief Browder’s story helped inspire numerous reforms to the justice system to prevent this tragedy from ever happening again, including an end to punitive segregation for young people on Rikers Island,” the Law Department said in a statement after the settlement was reached.

“We hope that this settlement and our continuing reforms help bring some measure of closure to the Browder family,” they added.

Browder was arrested in 2010 when he was 16 years old for allegedly robbing a man of his backpack. He denied committing the crime.

His family could not afford $3,000 for his bail — and while awaiting a trial that never came, Browder spent three years in Rikers Island, more than half of it in solitary confinement.

Prosecutors eventually dropped his charge and released Browder, but he killed himself at age 22 in 2015.

His story, first reported by the New Yorker magazine, touched off a national debate about the criminal justice system in America.

Browder’s brother, Akeem Browder, used his story as a platform for a Green Party mayoral run in 2017. During the campaign, Akeem Browder slammed Mayor de Blasio’s plan to close Rikers Island as a “publicity stunt.”

A lawyer for Browder’s family did not immediately respond.