It was built between 134 and 139 AD as a mausoleum for Emperor Hadrian and his family and was turned into a military fortress at the turn of the 5th century. It was then converted into a papal castle in the 14th century until 1901. It’s now a museum.