From SpottingWorld, the Hub for the SpottingWorld network...

An aftcastle is the upper deck of a sailing ship positioned behind the Mizzenmast. It was used in medieval shipping such as galleys or galleasses to provide a heightened platform from which to fire upon other ships; it was also a place of defense in the event of boarding. More common, but much smaller, is the forecastle.

ca:Castell (nàutica) fr:Dunette