The Republic of San Marino is divided into nine castelli, which constitute its first-level administrative divisions. Each castello is governed by a Captain of the Castle and a Castle Council, elected every five years.