When Castruccio died, the city fell into a period of anarchy which saw it subject at first to the dominion of a military company, which had Marco from the House of Visconti as its leader and hostage at the same time. Later the republic was repeatedly sold to different lords who were unable to exploit it due to the hostility of the Republic of Florence. Subsequently it was acquired by the Republic of Pisa and administered by its Lord, Giovanni Dell'Agnello.