The Captains Regent (Capitani reggenti) are the two heads of state of the Republic of San Marino. They are elected every six months by the Grand and General Council – the country's parliament. Normally the Regents are chosen from opposing parties and they serve a six-month term. The investiture of the Captains Regent takes place on 1 April and 1 October every year. This tradition dates back to 1243.
The practice of dual heads of government (diarchy) is derived directly from the customs of the Roman Republic, equivalent to the consuls of ancient Rome.
The establishment of the regency took place during the first half of the 13th century, when they had the role of managing justice, a task similar to competence of magistrates. During that period they were called consuls, which derived from ancient Rome. The first two known consuls were elected on 12 December 1243 by the Grand and General Council with a six-month term which is still used today.
At the end of the 13th century, the name of the institution started to change, as one took the title of "captain" and the other one of "defender", then in 1317 they became Captain and Rector. One usually belonged to the upper class, to guarantee the possession of skills necessary to govern the Republic with competence, and one to the working class.
In 1972 a law was passed to abolish all the restrictions which prevented women from taking public positions. A woman, Maria Lea Pedini-Angelini, was elected Captain Regent for the first time on 1 April 1981. Since 1 April 2017, for the first time two women, Vanessa D'Ambrosio and Mimma Zavoli, concurrently occupy the posts of Captains Regent, for a term lasting until 1 October 2017. To date, after electing its 15th and 16th female Captain Regent, San Marino is the country with most female heads of state in the World.