Don’t cross a mother defending her child, even if you’re a giant pit bull. After the aggressive dog attacked a 1-year-old girl in California, the girl’s brave mother was able to fatally stab the dog and stop the attack.

Family members say the Sunday night attack on 1-year-old Ruby Ann Cervantes by two blue nose pit bulls lasted no more than three or four minutes, KNBC reports. The girl’s mother, grandmother and aunt were all injured trying to stop the attack.

“He [The dog] had her by the leg, and I had to get his teeth off of her,” said Margaret Morales, Ruby’s grandmother, as reported by KTLA. “He bit my hand, and my hand’s pretty severely cut open.”

Jaime Morales, Ruby’s mother, eventually grabbed a knife and fatally stabbed one of the dogs.

“It was either him or my daughter, so I chose my daughter. I did whatever I had to do to protect my daughter,” Jaime Morales told KNBC.

Ruby was bitten in the leg, ankle and shoulder, according to her grandmother. She received several stitches and underwent two surgeries, including one for a fractured hip. She was expected to be placed in the intensive care unit after the surgeries.

The other three victims all required stitches, as well, KCOP reports. Jaime Morales was bitten in the face and arm while protecting her daughter.

“I did what I had to do because he [the dog] wouldn’t let go,” she said.  “I feel really bad, but I had to. I’m pretty sure anyone would have done it.”

The two pit bulls, both 3 years old, were owned by Margaret Morales, according to KNBC. They were normally outside dogs but were inside at the time of the attack after receiving baths. Family members say the dogs had not been aggressive prior to the incident.

The second dog involved in the attack was taken away by animal control and will be euthanized.