The "Castle" is World 5-4 — the mid-world fortress. Key challenge: moving wall of doom + Bob-omb blocks.
Post-Castle: World 5-5 unlocks (ice theme). World 5- (secret exit in 5-Ghost House) → World 5-Cannon → World 6.