The San Diego City Council voted Tuesday to regulate the use and sale of electronic cigarettes.
The ordinance, proposed earlier this year by Councilmember Mark Kersey, suggested banning vaping or e-cigs in public places like parks, beaches, bars and restaurants.
The ordinance also calls for businesses selling e-cigarettes to have a tobacco retailer license.
On Tuesday, the council unanimously approved the measure.
The battery-operated devices use liquid nicotine, not tobacco, so users inhale a vapor instead of smoke. E-cigarette companies say they are safer than traditional cigarettes.
But in 2009, The Food and Drug Administration found the inhaled substances contain carcinogens.
Poway, Vista and Carlsbad have already enacted similar measures.
The ordinance next goes to the desk of Mayor Kevin Faulconer for his signature.