The Los Angeles Police Department said officers were in its Southeast Division investigating a homicide that happened earlier in the year when the suspect took off.
"A suspect emerged from that location and fled," Sgt. James Ransom with the Los Angeles Police Department said. "Detectives put out the information and officers began pursuing the vehicle."
The suspect, who was in a silver Dodge Neon with Oregon license plates, drove erratically on freeways and side streets, at times driving on the wrong side of the road.
After several close calls, the suspect stopped in the middle of Imperial Highway in Lynwood, threw the keys to the ground and got out of the car with his hands in the air.
The suspect was taken into custody without further incident at about 1:45 p.m.
Detectives released a photo of the suspect's trunk which contained an assault rifle, ammunition, body armor and large bags of drugs.
Authorities have not publicly identified the suspect and didn't release more details on the homicide they said was originally under investigation.