In the 16th century, coinciding with the creation of new religious orders, Capuchin monks settled on the hill, where they built a monastery. As part of the extension work carried out between 1584 and 1587, they built a cistern that could hold 700 cubic metres of water, made up of three large rooms separated by columns. The underground tunnel that leads to the cistern was possibly built originally as an access to a probable crypt or other underground annexes used for religious purposes.
The structure was preserved during construction of a fort during the War of the Spanish Succession (1707) and the Peninsular War (1808-1809).