How did San Marino remain independent during the Italian Unification of the 19th century?

by ExistentialSalad
jja2850a