After their victory, the Mamluks pillaged Larnaca again and then Nicosia, the capital of Cyprus. The royal family retreated to fortified Kyrenia and were rescued. The invaders took a great deal of loot and captives before they left the island. That disaster, together with the previous raids, the war operations of Janus against Genoese, the epidemics and the invasion of locusts, caused the Cypriot serfs to revolt, as they suffered from living in conditions of utter poverty. The leader of the Cypriot revolutionaries was Alexis, whom they declared as king in Lefkoniko. The revolution was widespread supported by much of the population, who elected their own leaders in many places of Cyprus. Meanwhile, Janus was humiliated in Cairo: they took him, tied up with chains and riding a donkey, in front of the sultan. He was forced to kneel and worship nine times the soil on which the sultan stepped. Europeans mediated in the case, obtaining the release of Janus after collecting sufficient monies for the required ransoms. Cyprus also had to offer the sultan an annual tax based on income from 5,000 duchies. This tax continued to be paid even after the end of Frankish rule in Cyprus. Together with Janus, some of the captives bought their freedom after their families collected money for ransoms. Those who remained as captives were sold as slaves. While Janus was captive in Cyprus, the nobles and the royal family members were trying to gain his release, while dealing with Alexis' rebellion. With help from Europe, the rebellion was repressed after 10 months. The rebels' leader was arrested and, after terrible tortures, was executed in Nicosia on 12 May 1427, the same day that King Janus arrived in Paphos from Cairo. He died in 1432 and was succeeded by his son John. John married Amadea Palaiologina of Monferrato; she died in 1440. After this he married Helena Palaiologina, the granddaughter of Eastern Roman Emperor Manuel II Palaeologus. They had two daughters, the eldest of which, Charlotte, would succeed him as ruler of Cyprus. He also had an illegitimate son, James, by his mistress Marietta de Patras. James was made Archbishop of Nicosia at age 16, but was stripped of his title after murdering the Royal Chamberlain. John eventually forgave him, and appeared to be ready to name James as his successor, but died in 1458 before doing so. He was succeeded by his