User: When was the country of San Marino founded?
Assistant: San Marino was founded in the early 4th century. It was originally a Roman colony. It became an independent republic in 301, and joined the Holy Roman Empire in the 12th century. It became a sovereign state in the 16th century.