A mother murdered her two young daughters because she feared their father wanted to take them from her, a court has heard.
Samira Lupidi, 24, denies murdering 17-month-old Jasmine Weaver and three-year-old Evelyn Lupidi at a refuge in Bradford in November.
Bradford Crown Court heard Ms Lupidi told police she been hit by her partner and was worried about her safety.
She admits manslaughter on the grounds of diminished responsibility.
Peter Moulson, QC, prosecuting, told the jury Ms Lupidi and her girls ended up in the refuge in November after she called police to her home in West Yorkshire.
The defendant had told officers that her partner Carl Weaver, 31, had slapped her twice the night before, Mr Moulson told the court.
'Life is nothing'
The prosecutor described how, the morning after she was admitted, staff at the refuge found Ms Lupidi running out of the flat and shouting that she had "killed the children".
He said the worker noted her hands were smeared with blood.
Mr Moulson said Ms Lupidi, an Italian national, told another member of staff: "It's his fault. Now he has a reason to kill me. If I can't have them, he can't have them either.
"He was coming to get me. I had to do this."
The prosecutor said a kitchen knife was found on one of the children's beds.
He said that after Ms Lupidi was arrested, she said: "I know what I have done. My life is nothing now."
'Do something bad'
Statements were read from police officers who responded to the initial call to Ms Lupidi's home.
PC Kirsty Wright said Ms Lupidi had appeared to be scared but the children looked well cared for.
PC Wright said the defendant complained that her partner had hit her around the arms and legs, but the officer said there were no visible injuries.
In another statement, refuge worker Shamailar Kosar said Ms Lupidi had told her that her partner was planning to "get rid of her" after the girls' baptism.
She said the defendant told her: "He's going to do something bad to me."
Ms Kosar also explained how she later found the girls lying stabbed on the bed after she was called by a colleague.
Mr Moulson explained to the jury that much of the case would revolve around Ms Lupidi's mental state at the time of the killings.
The trial continues.