A lodger has been sentenced to life imprisonment after admitting murdering his landlady and her 11-year-old son.
Krystian Rozek, 27, received two life sentences, one for stabbing Monika Wasko and the other for murdering her son Patrick at their Flintshire home.
He was told by a Mold Crown Court judge he must serve a minimum of 27 years.
Rozek previously denied the attempted murder of Mrs Wasko's husband Rafal, and the charge will lie on file. All involved are originally from Poland.
Rozek was living with the family at Cae Hir, Flint.
The court heard he became "angry and bitter" after finding out his wife in Poland was cheating on him.
He took his fury out on the Wasko family, who had taken him in and shown him "nothing but kindness".
Mrs Wasko, 29, died at the scene in July.
Her son died at Alder Hey children's hospital in Liverpool three days after the attack.
Mr Wasko, 33, who has another son, Adrian, has since returned to Poland.
In his victim impact statement, he said: "I cannot begin to describe how I feel and how badly this has affected my life and also my son Adrian, who saw his brother and mother brutally murdered in front of his own eyes."
About a month after he moved in, the court heard, Rozek told Mr wasko he planned on flying home to Poland on 11 July after finding out his wife was cheating on him.
He spent 10 July drinking with friends, returning home in the early hours of 11 July, and spoke briefly to Mr Wasko about his return to Poland.
The court was told Mr Wasko was just falling asleep when he heard a scream from the bedroom his sons shared.
Prosecutor Simon Mills said: "He jumped up and ran into the bedroom thinking one of the boys had fallen out of bed.
"As he entered the boys' room Mr Wasko saw the defendant coming out. The light was off and as he approached the defendant pushed him into the door frame and walked off.
'Nothing but kindness'
"Mr Wasko then saw Patryk on the floor covered in blood. Adrian was in the other bed and he and his mother were screaming."
Mr Wasko ran back to his bedroom to get a mobile phone to call the emergency services as his wife tried to blockade herself and the boys in the bedroom.
Rozek returned to the bedroom, kicked the door off its hinges and stabbed Mrs Wasko in the heart and lung, shouting "I'm going to kill you", as he did so.
Sentencing, Mr Justice Griffith-Williams said the Wasko family had shown "nothing but kindness" to their lodger.
He told Rozek: "But when your marriage collapsed you turned on them with fury.
"You have deprived Rafal of his loving wife and Adrian of his loving mother.
"Their losses are devastating enough but they have to live also with having been witnesses to their murders.
"It is impossible to know how young Adrian's life in particular will affected by these experiences.
"It beggars belief that you were prepared to take out your murderous anger, or bitterness at your wife, on sleeping children and that you then murdered a young boy and his mother."
Det Supt Stephen Gould, the senior investigating officer, said: "This was a particularly horrific and senseless attack on a completely innocent young family.
"Understandably it has had a devastating effect on the remaining family members, their friends, Patryk's school St Mary's Catholic Primary school, Flint and the wider Polish and Flint community.
"Although Rozek had recently separated from his partner in Poland, it is impossible to understand why he would act in such a manner towards a family that gave him a place to live whilst working in the UK.
"Throughout our interviews with Rozek he was unable to provide a reasonable explanation of why he attacked both Patryk and Monika and I suspect that had the deceased and her husband not intervened, the consequences may have been even worse."
He said family liaison officers were still working with Rafal Wasko and his son in Poland.