Villasor (, ) is a comune (municipality) in the Metropolitan City of Cagliari in the Italian region Sardinia, located about northwest of Cagliari. As of 29 February 2016, it had a population of 6,949 and an area of .
Villasor borders the following municipalities: Decimomannu, Decimoputzu, Monastir, Nuraminis, San Sperate, Serramanna, Vallermosa, Villacidro.