After Lorenzo's death in 1492, his son Piero the Unfortunate took the reins of government, however his rule was short. In 1494, King Charles VIII of France invaded Italy and entered Tuscany on his way to claim the throne of the Kingdom of Naples. After Piero made a submissive treaty with Charles, the Florentines responded by forcing him into exile, and the first period of Medici rule ended with the restoration of a republican government. Anti-Medici sentiment was much influenced by the teachings of the radical Dominican prior Girolamo Savonarola. However, in due time, Savonarola lost support and was hanged in 1498. Medici rule was not restored until 1512. The Florentines drove out the Medici for a second time and re-established the Republic on May 16, 1527.