After the Duchy of Urbino was annexed by the Papal States in 1625, San Marino became an enclave within the Papal States, something which led to its seeking the formal protection of the Papal States in 1631, but this never equalled a ''de facto'' Papal control of the republic.