Castelsardo is a town and comune located in the northwest of the island of Sardinia, Italy. It is situated within the Metropolitan City of Sassari in the autonomous island region at the eastern end of the Gulf of Asinara.
The municipality has a population of 5,624 inhabitants. It serves as a coastal settlement characterized by its geographical position along the Sardinian coastline.