On the play, Castillo put a left-footed shot into the bottom left corner of the net after a pass from David Ferreira.
FCD (8-2-3) stretched its home unbeaten streak to eight games with the victory.
The Earthquakes (3-5-6) had their best chance a 2 minutes later when Victor Bernardez had a shot bang off the crossbar.
Ukrainian protestors topple Lenin statue [VIDEO]
'SNL': 'Anchorman 2' cast, One Direction sing 'Afternoon Delight' [VIDEO]