After a referendum in 2006, the municipalities of Casteldelci, Maiolo, Novafeltria, Pennabilli, San Leo, Sant'Agata Feltria and Talamello were transferred from the Province of Pesaro and Urbino (Marche) to the Province of Rimini on 15 August 2009.