A jury in Florida has recommended a sentence of life in prison for school gunman Nikolas Cruz over the 2018 Parkland massacre which left 17 people dead.

Cruz pleaded guilty last year to premeditated murder at Marjory Stoneman Douglas High School.

The expelled student was 18 years old when he used a semi-automatic assault rifle to kill 14 students and three staff members in one of America’s worst school shootings.

After three months of testimony and lawyers’ arguments, 12 jurors reached their recommendation after seven hours of deliberations over two days.

As the life sentences were announced many of the relatives of the victims could be seen shaking their heads and some cried.

In Florida, a death sentence could only have been handed down if jurors had unanimously recommended Cruz be executed.

Circuit Judge Elizabeth Scherer will formally issue the sentence at a later date.

More on Florida School Shooting

Cruz had said he chose Valentine’s Day to make it impossible for Stoneman Douglas students to celebrate the holiday ever again.

During the three-month sentencing trial the prosecution had argued Cruz’s crime was both premeditated as well as heinous and cruel – details among the criteria Florida law establishes for deciding on a death sentence.

His defence team had acknowledged the severity of his crimes, but asked jurors to consider mitigating factors, including lifelong mental health disorders resulting from his biological mother’s substance abuse during pregnancy.

Cruz had apologised for his crimes and asked to be given a life sentence without the possibility of parole in order to dedicate his life to helping others.

The sentencing proceedings included testimony from survivors of the shooting as well as mobile phone footage of students crying out for help or whispering as they hid during the shooting.

Lead prosecutor Mike Satz focused on Cruz’s eight months of planning and the seven minutes during which he stalked the halls of the school, firing 140 shots from his AR-15-style semi-automatic rifle before escaping.

Cruz’s lead attorney, Melisa McNeill, and her team did not question the horror of his actions but focused on their belief his birth mother’s heavy drinking during pregnancy had left him with foetal alcohol spectrum disorder.

Their experts said his troubling and sometimes violent behaviour, which started at the age of two, was misdiagnosed as attention-deficit hyperactivity disorder, meaning he never got the right treatment.

Mr Satz and his team contended Cruz did not suffer from foetal alcohol damage but had anti-social personality disorder.

Their witnesses said Cruz faked brain damage during testing and was capable of controlling his actions but chose not to.

Prosecutors also played several videos of Cruz discussing the crime with their mental health experts during which he talked about his planning and motivation.

The defence alleged on cross-examination that Cruz was sexually molested and raped by a 12-year-old neighbour when he was nine.

The massacre led to renewed calls for tighter gun control in the US, which have gained further support this year following the shooting of 19 children and two teachers at a school in Uvalde, Texas and another shooting at a supermarket in Buffalo, New York, that left 10 people dead.