The central courtyard of the Castle of Trani preserves traces of a loggia, demolished in the 16th century, where some carved corbels, depicting Adam and Eve and the Annunciation, proclaim the impartiality of imperial justice towards the Trani subjects, both Jews and Christians.
In 1533 the castle was adapted by Emperor Charles V for the use of firearms, fortifying the southern front according to the design of the Spaniard Fernando de Alarcon.
Seat of the Holy Royal Audience of Terra di Bari from 1586 to 1677, it was used as a prison from the mid-19th century until 1974.

