It is traditionally held to have been founded as a republic in 301 AD, was recognized by the Papacy in 1631, and became a member of the United Nations in 1992.
However, in the early 2000s, it was inferred that at least 95% of the people were Roman Catholics, as in Italy,[3][4][5][6][7][8] but with a historical Jewish and Protestant minority.
Estimates in 2020 suggested that 85.45% of the population were Catholic, while 6% belonged to other Christian denominations, 1% were Baha'i and 7.56% had no religion; there were also approximately 10 Muslims in the country.
The earliest mention of Montefeltro, as Mona Feretri, is in the diplomas by which Charlemagne confirmed the donation of Pepin.
The first document attesting the existence of a church (specifically, a monastery) in the area is the Placito Feretrano ostensibly dating from 885, although only known through an 11th-century copy.
On February 5, 1838, the church was solemnly inaugurated in the presence of Bishop of Montefeltro, Crispino Agostinucci and the Captain's-Regent.
The interior of the basilica consists of three naves, composed of sixteen Corinthian columns which form a large ambulatory around the semicircular apse.
The altar is adorned by a statue of the San Marino deacon by the Adamo Tadolini, a student of Antonio Canova.
In the right aisle is a small altar dedicated to the Mary Magdelene and a painting by Elisabetta Sirani "Noli Me Tangere."
On August 29, 1982, the basilica was visited by John Paul II,[15] who blessed the church and the relics related to the deacon of San Marino.
The Basilica of San Marino is depicted on the ten cent additions of the Sammarinese euro coins.
It houses a valuable altar with inlaid marble, donated by the musician Antonio Tedeschi in 1689, which is surmounted by a statue dedicated to St. Peter by Enrico Saroldi.
The rose window was covered in the seventeenth century but has been unearthed in the latest renovations undertaken by Gino Zani.
Inside there are two major paintings, "Presentation of Jesus in the Temple" of the Bolognese school of 600 and St. Andrew the Apostle and San Crescentino from 1761.
[20] The Monastero di Santa Chiara is a modern monastery building, located in Valdragone, Borgo Maggiore.
[21] Michelucci was initially approached by the government of San Marino for a consultation about the transformation of a nursing home.
The architect was then asked to draw up plans for the Shrine of Our Lady of Consolation, whose project was presented to the Assembly of the Congregation already in 1961.
Jews were required to wear special badges and live by specific restrictions, but were also permitted official protection by the government.