(n)castlea large building formerly occupied by a ruler and fortified against attack