The kings or judges of Cagliari were the local rulers of the south of Sardinia during the Middle Ages. Theirs was the largest kingdom and contested the supremacy on the island with that of Logudoro during the 11th and 12th centuries. It was often an ally of the Republic of Pisa and an early supporter of Western monasticism.