The sale of recreational marijuana becomes legal in Illinois in 2020, but the legislation authorizing it gives municipalities the option of not allowing it within their boundaries. Towns can also put restrictions on such things as the number of dispensaries allowed and where they can be located.