A ruling by the state Supreme Court has brought an end to San Francisco's attempts to ban handguns in the city.
In a ruling Wednesday, the court unanimously rejected the city's appeal of a lower-court ruling that sharply limited the ability of localities to regulate firearms.
The ruling deals a final blow to Proposition H, an initiative voters passed in November of 2005.
The ordinance would have forbidden San Francisco residents to possess handguns, as well as prohibit the manufacture, sale or distribution of any type of firearms or ammunition in the city.
Only law enforcement officers and others who needed guns for professional purposes would have been exempted.
The National Rifle Association had opposed the measure, suing on behalf of gun owners and dealers a day after the measure passed.