Municipal bonds, often referred to as "munis," are debt securities issued by local governments, counties, states, or other governmental entities. The primary purpose of these bonds is to fund public projects such as the construction of schools, highways, and hospitals. By issuing municipal bonds, these entities can raise capital while offering investors a relatively safe investment opportunity.