Due to contrasts between Siena and the papacy due to the support given to Perugia in the riots against the Papal State, the papal occupation lasted until 1378, the year in which the Republic of Siena regained control of the port by paying a large sum of money to Urban VI.