There must generally be a statutory basis for an ordinance, the ordinance must be in compliance with any overlapping statutes (although it may impose a stricter standard or penalty), and the ordinance must be related to the affairs of the local government in question.