The City Council on Monday unanimously passed changes to the zoning code locking out marijuana dispensaries.

But the council did agree that marijuana can be delivered into the city for medicinal purposes.

The new ordinance will bar retail sales and cultivation for commercial purposes citywide. 

“We may be swimming against the tide here. We will revisit this at some point,” said Mayor Terry Tornek.

That tide moved in favor of marijuana last November, when voters approved Proposition 64, which allows for the recreational use of marijuana and its sale for those purposes to people 21 and older. The new law, which creates two new taxes, one levied on cultivation, the other on retail sales, goes into effect Jan. 1.

According to Tornek, two-thirds of voters in Pasadena cast ballots in favor of Proposition 64.

However, pot is already being sold and consumed legally in California for medical purposes.

The city has been fighting illegal dispensaries for nearly two years.

Earlier this year, the city passed an ordinance allowing city officials to shut the power off at illegal pot dispensaries. About 19 marijuana dispensaries are operating illegally in the city.

In one case in Pasadena, an illegal dispensary began operating in a space adjacent to a Pasadena liquor store on North Lake Avenue, less than a mile away from two elementary schools and one middle school. The owner of the liquor store, who has been cited by the city, owns both spaces.

The council also voted to adopt a resolution to bar current illegal marijuana dispensary operators from receiving permits to operate any business in Pasadena.

Although the council voted in favor of commercial delivery for medicinal needs, some residents said that allowance needs strict guidelines.

“I realize they cannot stop outside companies from entering into Pasadena to make deliveries,” wrote Ruben Martinez in correspondence to the council. “However, in my neighborhood we had a delivery service going on for quite a while. The deliveries were always made via motorcycles and deliveries were being made at all hours of the night disturbing neighbors.”