A 46-year-old Long Beach man pleaded guilty today to murdering his estranged wife in Covina and another woman who was shot two months earlier in Azusa.

Miguel Angel Prieto, who also tried to kill a woman in Long Beach, is set to be sentenced March 3 at the Pomona courthouse in connection with his plea to one count each of first-degree murder and second-degree murder and two counts of attempted murder, according to the Los Angeles County District Attorney’s office.

“Given the senseless and brazen crimes committed by Miguel Angel Prieto, he will be sentenced to two consecutive life sentences,” District Attorney George Gascón said in a statement.

Prieto’s estranged wife, Maria Perez, 42, was slain April 11, 2018, in an apartment in the 1300 block of West San Bernardino Road in Covina, and the other victim, Rocio Sandoval, 38, was shot Feb. 9, 2018, while inside a vehicle in the 1500 block of West McKinley Avenue in Azusa.

Prieto—who mistook a man to be his estranged wife’s boyfriend—approached the man, who was sitting in a car with Sandoval, spoke to them and later shot them, prosecutors said. Sandoval died two days later from a gunshot wound to the head, according to the coroner’s office.

Prieto was also involved in a third shooting on April 7, 2018, in which he visited Perez’s uncle’s restaurant in Long Beach and shot at a woman, according to the District Attorney’s office.

Prieto—who was on probation in a 2015 assault with a deadly weapon case—was arrested by Covina police a few hours after his ex-wife’s killing.

He was found with a revolver inside his distinctive black work van in the parking lot of a Del Taco restaurant in Long Beach and has remained behind bars since then without bail.