Police have shot and killed a 49-year-old man suspected of shooting seven people at a birthday pool party in an apartment complex near the University of California, San Diego, authorities said.
One of the victims, a woman, later died in hospital.
Officers received reports of a man shooting people by the swimming pool at around 6pm on Sunday, Chief Shelley Zimmerman said at a news conference.
Four black women, two black men, and one Hispanic man were taken to hospitals with gunshot wounds, he said. One of the women later died.
Several victims were in surgery late on Sunday and others were in a critical state, Mr Zimmerman said.
One man was taken to the hospital after he broke his arm while fleeing.
"This is truly a horrific act of violence that took place here today," San Diego Mayor Kevin Faulconer said at a news conference.
"Our entire city, all of our thoughts and prayers, all San Diegans' thoughts and prayers, are with the victims and their families tonight."
A police helicopter arrived to the scene first and the pilot reported seeing multiple victims and that the suspect, Peter Selis, was still in the pool area and appeared to be reloading.
Three officers on the ground shot the suspect after he pointed a large-calibre hand gun at them, Mr Zimmerman said.
Police believe that Selis lived in the complex but have not discovered a motive.
One of the partygoers is believed to live at the same complex, Mr Zimmerman said.