San Diego will have a fully legal and regulated marijuana industry including pot farms, factories making edibles and retail storefronts selling the drug to both medical and recreational customers.

The City Council voted 6-3 on Monday to legalize local cultivation, manufacturing and testing of marijuana when new state laws take effect in January.