u/alexistheman has previously answered this question: https://www.reddit.com/r/AskHistorians/comments/3qx01y/why_hasnt_italy_ever_conquered_san_marino/?ref=search_posts