In a.d. 849–52, after the attack of the Saracens, Pope Leo IV erected a fortified wall around the Vatican, which later popes strengthened and extended. The north wall runs from Castel Sant’Angelo to the foot of the hill behind St. Peter’s; the south wall from the river to the hill.