Former Mayor David Dinkins is finally out of the hospital after an extended battle with pneumonia.

Representatives for Dinkins say the 88-year-old is home and continuing to recover after spending nearly three weeks at New York Presbyterian Hospital's intensive care unit.

Dinkins was previously hospitalized for pneumonia in 2013.

He was also hospitalized in 2008 when he underwent successful heart surgery.

Dinkins became the first African-American mayor in city history when he was elected in 1989.