In the period before the
Roman supremacy in southern Italy, it was included into the territory of , the chief town in the
Sarnus valley –
Herculaneum,
Pompeii,
Stabiae and
Surrentum all being dependent upon it, according to many archaeologists. It maintained its allegiance to Rome till 309 BC when it joined the revolted
Samnites.
Hannibal reduced it in 216 BC by starvation, and destroyed the town of . The inhabitants returned when peace was restored. Even during the
Social War it remained true to Rome. In 73 BC it was plundered by
Spartacus. In the
Middle Ages (around the 9th century) a small colony of
Saracens was introduced in the town by permission of the
Dukes of Naples, but it lasted only a few decades. The territory was merged back to , which took the name of (), inspired by the noble Pagano family living in the castle of , in modern-day Pagani. ==Churches and religion==