The history of the founding of San Marino is shrouded in a halo of ancient legends closely intertwined with real historical facts. According to tradition, the capital of the world's oldest republic was founded on September 3, 301 AD. The settlement was founded by Marinus, a skilled stonemason who arrived from the island of Rab seeking refuge from the brutal persecution of Christians during the reign of the Roman Emperor Diocletian.
Finding sanctuary on the inaccessible peak of Mount Titano, Marinus built a small cell and a house of prayer. Soon, a community of like-minded people who valued peace and spiritual freedom formed around him. Before his death, the saint enjoined the residents to remain "free from the influence of others"—this phrase became the founding principle of San Marino's statehood for all subsequent centuries.
The geographical isolation of the settlement on the steep slopes of the Apennines played a key role in its development. While its neighbors fought endless wars, the community on Mount Titano developed crafts, agriculture, and stone quarrying. The first documentary evidence confirms the existence of a monastery and a castle as early as the early Middle Ages, while archaeological finds indicate that these sites were inhabited as far back as the Neolithic period.
By the end of the 6th century, the Monastery of Saint Marinus functioned as a completely independent unit. The city's economy was based on the processing of local stone and the trade of agricultural products from the foot of the mountain. It was this combination of religious cohesion and geographical inaccessibility that allowed the small community to grow into a unique state that has preserved its sovereignty for fifteen hundred years.