San Marino is a country, and not part of Italy. It is one of the smallest countries in the world, and Italy surrounds it.