Linked to the Vatican by a thick-walled passage , it served as a hideout for popes in times of danger , notably Pope Clement VII , who holed up here for a month during the sack of Rome by Habsburg troops in 1527 .
The passage which connects it to the Vatican was added in the 14th century .