A Georgia mother who stabbed her husband and four of her children to death two years ago because she ‘felt like a devil spirit’, pleaded guilty on Tuesday - receiving five life sentences from a Gwinnett County judge.

Isabel Martinez, 35, pleaded guilty but mentally ill to the five counts of murder, one count of aggravated assault and one charge of cruelty to children for her heinous crimes on July 6, 2017.

She admitted to the court that she butchered her husband, Martin Romero, 33, and four of their children: Isabela Martinez, 10; Dacota Romero, 7; Dillan Romero, 4; and 2-year-old Axel Romero, with a knife in the middle of the night.

She also injured another of her children in the attack, then nine-year-old Diana Romero, who later recalled to police how she watched on in horror as her mother killed her family one-by-one.

Romero said Martinez told each of the children they were ‘going to the sky to see Jesus’ before turning the blade on them in their suburban Atlanta mobile home.

Isabel Martinez, 35, pleaded guilty but mentally ill on Tuesday to five counts of murder, one count of aggravated assault and one charge of cruelty to children (pictured in 2017)

She admitted to the court that she killed her husband, Martin Romero (left) and four of their kids, Isabela (middle), Dacoto (in stroller), Dillan (right), and Axel (bottom), on July 6, 2017

Martinez told each of the children they were ‘going to the sky to see Jesus’ before turning the blade on them in their suburban Atlanta home

Martinez, who suffers from schizophrenia, is said to have long struggled with mental health problems such as depression and erratic mood swings.

But after the death of her father two years before the murders, her mental temperament drastically declined, the court heard.

Several family members were present in the court room to witness the 35-year-old’s plea, none of whom spoke.

Martinez will now be detained in a state facility where she’ll receive treatment for her various mental health issues.

Prosecutors say it’s the severity of her mental state that stopped them from pursuing the death sentence.

‘There was no way she wasn’t going to be found guilty of these murders,’ Gwinnett District Attorney Danny Porter told AJC on Wednesday. ‘I believe guilty but mentally ill was the best outcome we could get.’

Martinez won’t be eligible for parole for 30 years, but it’s unlikely she’ll ever be released because of the nature of her crimes, prosecutors said.

Then just nine, Diana Romero narrowly survived the attack and later recalled the horrific ordeal to police

The frightening extent of Martinez’s mental health problems were laid bare in court the day after her arrest where she exhibited an array of bizarre behavior towards the cameras

As her family slept in their beds on July 6, 2017, Martinez awoke in the middle of the night and - taking a knife from the kitchen - killed four of her children one after another.

Their father, Martin, woke up and tried to stop Martinez’s vicious onslaught but he too was killed in the struggle.

Martinez then placed her slain family members' bodies in the same room so they could be together, she later told investigators.

She then starting cutting herself before dialing 911 to report their deaths. Police arrested her at the scene.

Martinez told a caseworker the killings were the work of a 'family friend' and maintained her innocence.

Her only surviving child Diana spent weeks in hospital recovering from her stab wounds and is now under the care of other relatives.

Martinez then placed her slain family members' bodies in the same room so they could be together

She then starting cutting herself before dialing 911 to report their deaths

Family members mourn in front of the caskets of Martin Romero and the four children on July 13, 2017

The frightening extent of Martinez’s mental health problems were laid bare in court the day after her arrest where she exhibited an array of bizarre behavior, which included posing with a double thumbs-up, putting her hands in a prayer position and spreading her arms out wide.

She also shook her head 'no' and wagged her finger at Gwinnett County Magistrate Judge Michael Thorpe, who advised her sharply not to perform for the cameras.

Some neighbors in the small, largely Hispanic neighborhood where the family lived said they had no clue anything was amiss in the home until police mobbed the scene.

The neighbors said the Spanish-speaking family had moved to the community recently, and their children seemed happy playing with other neighborhood kids.

'What prompts a person to take the life of such innocent children and her spouse is something we may never understand,' Gwinnett County police said in a statement at the time.

'This is a horrendous crime not only for the victims but for the extended family, neighborhood and community.'