According to legend, San Marino was founded in 301 AD when a Christian stonemason Marinus (lit. from the sea), later venerated as Saint Marinus, emigrated in 297 AD from Dalmatian island of Rab, when Emperor Diocletian issued a decree calling for the reconstruction of the city walls of Rimini, destroyed by Liburnian pirates. Marinus later became a Deacon and was ordained by Gaudentius, the Bishop of Rimini; shortly after, he was recognised and accused by an insane woman of being her estranged husband, whereupon he quickly fled to Monte Titano to build a chapel-monastery and live as a hermit. There he built a chapel and monastery. Later, the State of San Marino would bud from the centre created by this monastery. Living in geographical isolation from the Diocletianic Persecution of Christians at the time, the mountain people were able to live peaceful lives.