Switzerland has a long republican history. It was democratic but only for a few years after the civil war. The federal constitution defines Switzerland as a federal state composed of 26 cantons. Switzerland's government, parliament, and courts are organized on three levels. The federal, cantonal (based on 26 cantonal conventions), and communal. Switzerland does not have a full time president.