The Republic of Florence, officially the Florentine Republic, was a medieval and early modern state that was centered on the Italian city of Florence in Tuscany. The republic originated in 1115, when the Florentine people rebelled against the Margraviate of Tuscany upon the death of Matilda of Tuscany, who controlled vast territories that included Florence. The Florentines formed a commune in her successors' place. The republic was ruled by a council known as the Signoria of Florence. The signoria was chosen by the gonfaloniere, who was elected every two months by Florentine guild members.
The republic had a checkered history of coups and counter-coups against various factions. The Medici faction gained governance of the city in 1434 under Cosimo de' Medici. The Medici kept control of Florence until 1494. Giovanni de' Medici re-conquered the republic in 1512.
Florence repudiated Medici authority for a second time in 1527, during the War of the League of Cognac. The Medici re-assumed their rule in 1531 after an 11-month siege of the city, aided by Emperor Charles V.