A young mother was shot with an electric stun gun, bound and gagged, and then buried alive in a cardboard box after her partner got "bored" with her, a court has heard.
A "terrified" Michelina Lewandowska, 27, was taken to the countryside where she was buried in shallow grave and a large branch was placed on top of the box, Leeds Crown Court was told.
The jury was told that Miss Lewandowska managed to escape from the box and raised the alarm by flagging down a passing car.
Her partner, Marcin Kasprzak, with whom she has a three-year-old son, is on trial with another man, Patryk Borys, charged with attempted murder.
Both men, who are Polish, deny the charge.
Prosecuting, Jonathan Sharp said: "In a nutshell, this case is about a young man who got bored with his partner, the mother of his child, and he decided to get rid of her."
The barrister said the victim was attacked with a Taser, bound and gagged with tape and "imprisoned" in a box.
He added: "He and his friend imprisoned her in a box, drove her to a wooded area where it was unlikely she would be found, and there dug a shallow grave and buried her alive."