The towers were built by the "masters of stone" Baldomar Francesc and Pere Compte. This door began building two years earlier (1441) than the Castel Nuovo of Naples (1443), with which bears some resemblance. The two buildings were made under the reign of Alfonso the Magnanimous because he was king of Valencia and Naples.

Its walls preserve the impacts of artillery, even after the restoration of various Carlist wars like the Civil War and, especially, the War of Independence.