The Ontario Municipal Act, 2001 authorizes municipalities to pass by-laws regarding the economic, social and environmental well-being of the municipality, health and safety of the residents and protection of people as well as properties including activities that could cause public nuisance.