The AltamuranRevolution was a three-month period of self-government of Italian town Altamura, right after the birth of the Parthenopean Republic which ousted the Bourbons and the Kingdom of Naples. The city of the Kingdom of Naples was then defeated and taken by the so-called Sanfedisti, led by cardinal Fabrizio Ruffo, after a battle on the city walls. After being defeated, most Altamurans managed to flee from Porta Bari, one of Altamura's main gates. In February 1799, the news that the king had fled to Palermo arrived in Altamura. Altamura population then reorganized and embraced the ideals propagated by the French Revolution. The Liberty Tree was also planted in what it was then called piazza del mercato. In the meantime, the Sanfedisti, led by the cardinal Fabrizio Ruffo, were getting closer and closer, determined to restore the Kingdom of Naples and the Bourbons dynasty. Sanfedisti left Matera and arrived at the gates of Altamura on 9 May 1799. Altamura had already fixed everything before the battle, by closing the secondary city gates, fusing the church bells in order to make new cannons and preparing ammunition. On 9 May, the battle took place, but soon Altamurans ran off of ammunition and they started to shoot coins. This let the enemy realize that the situation inside the city was critical and that they wouldn't last for long. On the night of 9 May 1799, most Altamurans managed to escape from porta Bari. On the morning of10 May, Sanfedisti entered Altamura, sacking and slaughtering an unknown number of Altamurans who had remained there. The stay of Sanfedisti and Ruffo inside the city lasted 14 days, during which Altamurans gradually returned and some of them were killed or imprisoned. By the end of May 1799, the situation had already normalized and Altamura had returned under the full control of the Kingdom of Naples. The number of deaths among Sanfedisti has been estimated at around 1,400 people, but it is not clear how many Altamurans were killed. Some historians estimated the losses among Altamurans from about forty to a hundred people, while other historians suggested that many Altamurans and NeapolitanJacobin people from other cities may have been counted as Sanfedisti. In this case, the death toll among Altamurans and Parthenopean Republicans would be much higher.