San Marino’s geographical location and hilly terrain have allowed it to stay independent over the centuries. Also, a lot of the citizens of this small European country are actually its native residents.  In 1862 a friendship treaty was signed between Italy and San Marino, guaranteeing its independence from the Italian state.