The fortress also served as a military prison. In 1940, Franco's forces executed Catalan president Lluís Companys in its moat; military prisoners were held here until 1960.