San Leo (San Lé in Romagna) is located on a spur of rock of the Marecchia valley from where you can observe San Marino and the Marecchia, on the border between Romagna and the Marche.
The toponym Latin of the place, Mons coffins, is derived from a temple dedicated to Jupiter Feretrio, while others assume an Umbrian origin to witness that the stone was already popular in the Roman era. Procopius of Caesarea in the chronicle of the Gothic War of the VI century, indicates the village of San Leo as castrum Monteferetron. Starting from the IX-X century the village takes the name from the hermit Leo (proclaimed then Santo), a Dalmatian companion (SAN) Marino, while the toponym remains to the Diocese of Montefeltro (9th century), then used to indicate all the territory under the jurisdiction of the bishop. Since then, San Leo has long been the historical capital of the "region" of Montefeltro. It was a place of passage of Saint Francis, 1213, and Dante 1306, prison of Felice Orsini and Cagliostro. San Leo has also had the honor of being the capital of Italy or better, of the Italico Kingdom of Berengario II, which defeated at Pavia in 961 by Ottone I of Saxony took refuge in San Leo, where ruled the siege for months before handing over to the opponent. The center was the domain of the Montefeltro (from the ancient name of San Leo), Malatesta, Doctors, disputed with the Della Rovere, up the passage under the papal state in 1631.
In the Italy joined the municipality of San Leo has belonged to the Marche (province of Pesaro and Urbino) until 15 August 2009, when it was detached together with six other municipalities of the high Valmarecchia in implementation of the outcome of a referendum held on 17 and 18 December 2006.