Cortona became a Ghibellinian city state in the 13th century, with its own currency. From 1325 to 1409, the Ranieri-Casali family successfully ruled the town. After being conquered by Ladislaus of Naples in 1409, Cortona was sold to the Medici in 1411. In 1737, the senior branch of the Medici line became extinct and Cortona came under the authority of the House of Lorraine. Following the Italian Wars of Independence, Tuscany—Cortona included—became part of the Kingdom of Italy.