A woman from Maine is charged with murdering her ex-husband after she allegedly flew into a rage after learning that she had lost custody of their two children.

Kandee Weyland, 46, was arrested Wednesday night on charges of murder and violating a protective order in the slaying of 42-year-old Scott Weyland.

The children, aged seven and 11, witnessed their mother stabbing their father to death, according to the victim's mother

Authorities said the father-of-two suffered severe injuries in the yard of his mother's home at 1097 Milton Mills Road in Acton on Wednesday afternoon.

Wife arrested: Kandee Weyland (left), 46, has been charged with murdering her estranged husband, Scott (right), and violating a protective order

Scott Weyland, 46, was found mortally wounded outside his home on Milton Mills Road in Acton, Maine (pictured), on Wednesday

The victim was taken to Goodall Hospital in Sanford, where he died from his injuries a short time later.

Scott Weyland's mother, retired Sanford police detective Gay Weyland, told the Portland Press-Herald that her son's divorce had just been finalized after an acrimonious 10-month legal battle, and that on February 17 her daughter-in-law received a copy of the judgement in the mail.

The document informed Weyland that the court has granted full custody of their children to her ex-husband.

Scott Weyland had been living with his mother in Acton since his separation from his wife in April 2016.

At around 1pm on Wednesday, Gay Weyland said her former daughter-in-law drove to her home with her two children in tow and rammed her son's vehicle parked in the driveway.

The Weylands have two children, believed to be pictured above with Kandee, who were turned over to grandparents after their father's murder

When Scott emerged from the house to find out what was happening, his mother said Kandee jumped out of her car, confronted him and began stabbing him in the yard.

The couple's two children witnessed the bloody attack, and according to their grandmother, it was her 11-year-old grandson who called 911 for help. Gay Weyland was not home at the time of the incident.

Court documents filed in the custody case paint a picture of Kandee Weyland as a woman spiraling out of control and unable to provide for her children due to her struggles with depression, anxiety and post-traumatic stress disorder.

Acrimonious divorce: Both the husband and wife had filed orders of protection against one another just days apart last April

According to the findings of an investigation carried by the Department of Health and Human Services, the home in Acton that Kandee shared with her son in daughter was uninhabitable owning to the fact that it was cluttered, had a flooded basement and a broken boiler.

A judge concluded that the woman's ability 'to provide a safe, clean, secure and comfortable home for the parties’ two minor children is severely compromised', adding that she was at risk of becoming homeless in the near future.

Both the husband and wife had filed orders of protection against one another just days apart last April.

Scott Weyland accused Kandee in a written statement of using the order to 'threaten and intimidate' him.

He also claimed that on one occasion, his wife pointed a gun at his head and tried to steal his car while he was at work, reported WMTW.

Scott wrote of his wife: 'she seems obsessed with destroying me,' according to the station WGME.

On her part, Kandee accused Scott of being physically and emotionally abusive towards her. She claimed that her husband of eight years had struck her on four occassion and pressed a finger into her throat.

On Thursday, the victim's mother called Kandee manipulative and dismissed her accusations agaisnt her late son as baseless.

The Weylands' children were turned over to grandparents Wednesday night. Scott's mother said her grandkids are traumatized by what they had witnessed.

Kandee Weyland is due in court for her initial appearance Friday afternoon.