A federal judge declared California’s ban on high-capacity gun magazines over 10 rounds as unconstitutional on Friday, following a lawsuit by the state's arm of the National Rifle Association.

On Friday San Diego-based U.S. District Judge Roger Benitez ruled the law against high-capacity gun magazines was unconstitutional, blocking the state from enforcing the voter-approved ban outlined California’s Proposition 63.

The proposition was made to prevent the use of such magazines, which are often used in mass shootings and got passed on the November 8, 2016 ballot.

California law has prohibited buying or selling of magazines with over 10 rounds since 2000, but those who had them before then were allowed to keep them.

In 2016, the Legislature and voters approved a law removing that provision.

The California arm of the National Rifle Association then sued and Benitez sided with the group's argument that banning the magazines infringes on the Second Amendment right to bear arms.

On Friday San Diego-based U.S. District Judge Roger Benitez ruled California's law against high-capacity gun magazines was unconstitutional. A semi-automatic rifle and 10 shot magazine pictured above

He cited stories of three women confronted by armed intruders in their homes. The woman with a high capacity magazine was able to kill an intruder and call for help, while the two other women ran out of bullets. 20, 30, and 100 round rifle magazines above

'Individual liberty and freedom are not outmoded concepts,' Benitez wrote in his 86-page order as he declared the law to be unconstitutional, granting a summary judgement in favor of gun owner Virginia Duncan and the California Pistol & Rifle Association.

Benitez cited the stories of three women who were at their homes in Florida and Georgia and were shot by gun-weilding intruders who broke into their homes.

He suggested that the women were unable to stop the assailants because they had lower capacity guns to defend themselves.

In one case a pajama-clad woman who had a high-capacity magazine attached to her weapon was able to take on three armed intruders, while simultaneously calling for help on her phone.

In the other two cases the women without additional ammunition ran out of bullets.

'She had no place to carry an extra magazine and no way to reload because her left hand held the phone with which she was still trying to call 911,' the judge wrote, saying she killed one attacker while two escaped.

Chuck Michel, an attorney for the NRA and the California Rifle & Pistol Association, said the judge's latest ruling may go much farther by striking down the entire ban, allowing individuals to legally acquire high-capacity magazines for the first time in nearly two decades.

'We're still digesting the opinion but it appears to us that he struck down both the latest ban on possessing by those who are grandfathered in, but also said that everyone has a right to acquire one,' Michel said.

Attorney General Xavier Becerra said in a statement that his office is 'committed to defending California's common sense gun laws' and is reviewing the decision and evaluating its next steps.

'Individual liberty and freedom are not outmoded concepts,' Benitez (above) wrote in his 86-page order as he declared the ban on high capacity magazines to be unconstitutional

The goal of the California law is to deter mass-shootings, with Becerra previously listing as an example the terrorist assault that killed 14 and injured 22 in San Bernardino.

Benitez, an appointee of Republican President George W. Bush, called such shootings 'exceedingly rare' while emphasizing the everyday robberies, rapes and murders he said might be countered with firearms.

The Giffords Law Center to Prevent Gun Violence, named after a former congresswoman who survived a mass shooting, is also still evaluating whether the decision applies more broadly, said staff attorney Ari Freilich.

But Freilich predicted the 'extreme outlier decision' will be overturned on appeal and criticized a judge 'so deeply out of touch that he believes mass shootings are a "very small" problem in this country.'

Becerra previously said similar Second Amendment challenges have been repeatedly rejected by other courts, with at least seven other states and 11 local governments already restricting the possession or sale of large-capacity magazines. The conflicting decisions may ultimately be sorted out by the U.S. Supreme Court.

Benitez ruled that magazines holding more than 10 rounds are 'arms' under the U.S. Constitution, and that the California law 'burdens the core of the Second Amendment by criminalizing the acquisition and possession of these magazines that are commonly held by law-abiding citizens for defense of self, home, and state.'

The magazine ban was included in 2016 legislation that voters strengthened with their approval of Proposition 63, which was championed by then-Lt. Gov. Gavin Newsom.

Gov. Newsom did not comment Friday.