Inherited from Old Galician-Portuguese castelo, from Latin castellum, diminutive of castrum (“fort”).
Practice speaking and memorizing "castelo" and many other words and sentences in Galician.