He and his accomplice are suspected in 19 armed robberies in Orange County in the past two months.
Police arrested Ramirez during a traffic stop last week and found a gun and other evidence in his car.
Ramirez's alleged accomplice is still at large. Anyone with information is urged to call Santa Ana Police at 714-245-8443.