There are two hypotheses on the origin of the name: Sacrum Fanum, a sacred place near Mount Musino and Scrofano, from the legend of a sow who discovered a spring, saving the crops.
Since 1938, the name of the town has become Sacrofano.
Close to Rome, in an intermediate position between the Cassia and Flaminia consular roads, the predominantly agricultural territory of Scrofano with its lands already in 780, under Pope Hadrian I, was part of the domusculta Capracorum, a vast 'farm' of the first nucleus of the Church state
For defensive reasons, the settlement of Scrofano was'embedded' towards the 'mountain', on the ridge, to defend itself around the 10th century from Moorish incursions, creating the castrum,the castle.
Much coveted by the Roman baronial families, especially the Orsini, who became its owners at the end of the 14th century. In 1554, the Orsini granted the Statute regulating relations between citizens. Under their rule walls were strengthened and towers were created, some of which can still be seen among the structures of the houses that were later developed behind them. In 1661 the Orsini, seriously in debt, sold off the territory of Scrofano with its Borgo to the Chigi, who, during the 1700s, started a phase of building recovery.