From the Wikipedia page [1], with more information on the French [2] and Italian [3] Wikipedia pages.
The state archives for the republic of San Marino.
They date back to 1600, and in the modern form from 1949, with a law on archives dating to 1978.
The website, in Italian, is [4].