Etymology
Today it means: Raised part of the upper deck at the stern of a ship. Full definition →
From aft + castle.
Etymology from Wiktionary, CC BY-SA 4.0.