Dalya Saeed, 35, is accused of stabbing Bilal Miah, 31, with a carving knife and trying to pull out his intestines after the pair had romped.
A court heard part of Mr Miah’s small bowel was cut from his body and thrown on to the bedroom carpet.
The taxi driver, who had remarried, told a jury he desperately tried to push his entrails back into his stomach after being attacked by his estranged wife at her home.
Saeed denied charges of attempted murder and wounding with intent when she went on trial at Birmingham Crown Court on Monday
Mr Miah told the jury he was attacked by Saeed at around 10pm on October 19, 2015 after going to her flat in Moseley, Birmingham.
He said the pair had argued about custody of their daughter before they ended up back on the bed.
Giving evidence, Mr Miah added: “Suddenly in the blink of an eye, and I didn’t see the knife, she stabbed me twice in the belly.
“I can only assume the knife came from either under the bed or the pocket of her dressing gown.
“My intestines were out, everything was out and she was grabbing hold of them, trying to pull them.
“She broke one of them and threw it on to the floor but I managed to put the rest of them back in my belly.”
Prosecutor Adam Western told the jury: “The cuts were so severe part of his small bowel ended up on the carpet.
“She caused his injuries. Her intention was nothing less than to kill him.”
The court heard Saeed told police she attacked her ex-husband in self-defence after he raped her.