We recommend carrying your passport to visit San Marino. Your passport won’t be stamped, but you can get a touristy stamp for a fee!