Hundreds of medical marijuana dispensaries in Los Angeles will soon be notified that they must shut down in June, when the city's medical marijuana ordinance will take effect.

The City Council decided Friday to approve fees that dispensaries will be required to pay to register, the last piece of the long-delayed ordinance. When those fees are effective, which is expected to be around June 4, city officials will send cease-and-desist letters to illegal dispensaries. The city's medical marijuana ordinance allows only dispensaries that registered under the city's 2007 moratorium to continue to operate under its new law.

"It was the wild, wild West for weed in Los Angeles for some time, and we are going in the direction to finally take control of the situation," said Councilman Jose Huizar, who helped draft the medical marijuana ordinance. "This is a very significant step."

Operators of the dispensaries that will be forced to shut down have been weighing their legal options, which include suing the city to challenge the ordinance.