This strategic enclave sits nestled in the Garraf Massif, within the confines of the Nature Park of the same name. The mountains provide a great deal of protection, which, along with an abundance of resources, makes the region ideal for human occupation, as attested to by evidence of 4,000 years of occupation.

The oldest material remains date to the Bronze Age. The earliest urban vestiges correspond to a walled Iron Age settlement and a fortified Iberian village. Following the Roman incursion, the settlement became tantamount to the process of controlling and reorganising the region and a key point of access to the capital Tarraco. In the late 10th century, the Count of Barcelona ordered the construction of a perimeter wall to protect the site's inhabitants, along with the Sant Miquel Church and the castle, monuments from which a number of structures remain standing.