The Supreme Court on Monday ruled in favor of gun rights advocates, but said California’s ban on handguns and magazines holding more than 10 rounds should be struck down.
The 5-4 ruling, which was unanimous, was in response to a lawsuit brought by the American Civil Liberties Union and the Brady Center to Prevent Gun Violence.
The court sided with gun rights supporters who said California was violating the Second Amendment by limiting magazines to 10 rounds.
The court said the Second and Ninth Amendments do not require bans on handguns.
California Attorney General Xavier Becerra argued the ban is necessary to prevent criminals from getting firearms, which could have a devastating effect on public safety.
He said California is a gun-free zone and that the state needs to enforce existing gun laws.
The ruling will be appealed, and a decision is expected soon.
California voters approved a measure in 2012 to ban firearms in most public places except churches, schools and state-run hospitals.
The ban did not go into effect for 90 days.