Municipal governments in cities and towns have a diverse range of responsibilities, of which the most important is public safety. City police departments are responsible for law enforcement, while fire departments provide fire protection and enforce policies related to fire safety, such as fire codes for buildings.
Many municipalities also administer court systems. City courts hear cases related to city code violations, traffic citations and some minor criminal matters.
Public infrastructure is another city government function. Cities are responsible for paving, repairing and maintaining city streets. They also provide water and sewer service for city residents and businesses. Many city governments also operate municipal parks and public libraries. Residential and commercial sanitation is another important city government function, though some municipalities have contracted sanitation services to private carting firms.