ake advantage of his weakness and to capture the city, but Sigismondo Pandolfo Malatesta, Carlo's nephew, who was only 14 at the time, intervened to save it. Galeotto retired to a convent, and Sigismondo obtained the rule of Rimini.
Sigismondo Pandolfo was the most famous lord of Rimini. In 1433 Emperor Sigismund soujourned in the city and for a while he was the commander-in-chief of the Papal armies. A skilled general, Sigismondo often acted as condottiero for other states to gain money to embellish it (he was also a dilettante poet). He had the famous Tempio Malatestiano rebuilt by Leon Battista Alberti. However, after the rise of Pope Pius II he had to fight constantly for the independence of the city. In 1463 he was forced to submit to Pius II, who left him only Rimini and little more; Roberto Malatesta, his son (1482), under pope Paul II nearly lost his state but under Sixtus IV became the commanding officer of the pontifical army against Ferdinand of Naples. Sigismondo was, however, defeated by Neapolitan forces in the battle of Campomorto (1482). Pandolfo IV, his son (1500), lost Rimini to Cesare Borgia, after whose overthrow it fell to Venice (1503–1509), but it was later retaken by pope Julius II and incorporated into the Papal States. After the death of pope Leo X, Pandolfo returned for several months, and with his son Sigismondo held a rule which looked tyrannous even for the time. Pope Adrian VI expelled him again and gave Rimini to the Duke of Urbino, the pope's vicar in Romagna. In 1527 Sigismondo managed to regain the city, but in the following year the Malatesta dominion died forever.
Modern history
At the beginning of the 16th century Rimini, now a secondary town of the Papal States, was ruled by an Apostolic Legate. Towards the end of the 16th century, the municipal square (now Piazza Cavour), which had been closed off on a site where the Poletti Theatre was subsequently built, was redesigned. The statue of Pope Paul