San Marino is said to be the world's oldest surviving republic. Tradition has it that the country was founded in the fourth century AD by a devout Christian stonemason called Marinus, who took refuge there and set up a small community.