The Merced County Sheriff's Office says it happened Tuesday before 9:30 am.
The victim told officers her ex-boyfriend and his new girlfriend took her from her home in Stevinson.
She told deputies her ex-boyfriend threatened to kill her.
The woman was able to escape from the couple, but as she ran away, they chased her. At one point, someone started firing shots at her.
The victim was not injured.
Sheriff's officials say the SWAT team served a search warrant at a home on 4th Avenue in Stevinson and arrested 36-year-old Victor Martinez Nunez and 39-year-old Elizabeth Cisneros.
Nunez and Cisneros were booked into the Merced County jail on charges of attempted murder and kidnapping.
If you are the victim of domestic abuse, or you know someone who is, there is help available 24/7. In Fresno County, call the Marjaree Mason Center at (559) 233-4357. In all other locations, call the National Domestic Violence Hotline at (800) 799-7233.