After the Lombards conquest, Pavia became the capital of their kingdom. During the Rule of the Dukes, it was ruled by Zaban. It continued to act as the administrative centre of the kingdom, but by the reign of Desiderius, it had fallen to a first-rate defensive work and Charlemagne took it in the Siege of Pavia (June, 774) assuming the kingship of the Lombards. Pavia remained the capital of the Italian Kingdom and the centre of royal coronations until the diminution of imperial authority there in the twelfth century.