Mickiael Ward, who spoke during the hearing at a Cook County courthouse, had faced at least 50 years behind bars.
WATCH: Hadiya Pendleton's mother reads statement at sentencing of Mickiael Ward
The sentencing comes six years after Ward fired into a crowd of King College Prep High School students who were at a South Side park. Those gunshots hit and killed Pendleton and injured two of her friends.
A jury found Ward guilty on all counts related to the shooting. Kenneth Williams, the accused getaway driver, was also found guilty.
Before the judge's sentencing Ward spoke, saying "I didn't even do it." Ward said he was sorry for the family and he wished the family knew who actually killed their daughter, but he didn't do it.
WATCH: Mickiael Ward speaks at his sentencing hearing
Cook County Assistant State's Attorney Brian Holmes called Ward "a sociopath," noting that Ward was on probation when the shooting happened, adding that "he is the face of senseless gun violence in Chicago."
During the hearing, Pendleton's mother and brother shared victim impact statements, telling the court about their anger and pain.
Ward's mother and grandmother testified that Ward adheres to his innocence.
WATCH: Hadiya Pendleton's brother reads statement at sentencing of Mickiael Ward
Pendleton's death made national headlines. She was shot and killed just days after performing at President Barack Obama's inauguration. Michelle Obama attended her funeral.
Pendleton's brother and mother offered statements in the heading.
Attorneys for Ward filed a motion for a new trial, which was denied.