(chess) to move (the king) two squares laterally on the first rank and place the nearest rook on the square passed over by the king, either towards the king's side (castling short) or the queen's side (castling long)

castle

n.

late Old English castel "village" (this sense from a biblical usage in Vulgar Latin); later "large fortified building, stronghold," in this sense from Old North French castel (Old French chastel, 12c.; Modern French château), from Latin castellum "a castle, fort, citadel, stronghold; fortified village," diminutive of castrum "fort," from Proto-Italic *kastro- "part, share;" cognate with Old Irish cather, Welsh caer "town" (and perhaps related to castrare via notion of "cut off;" see caste). In early bibles, castle was used to translate Greek kome "village."

This word also had come to Old English as ceaster and formed the -caster and -chester in place names. Spanish alcazar "castle" is from Arabic al-qasr, from Latin castrum. Castles in Spain translates 14c. French chastel en Espaigne (the imaginary castles sometimes stood in Brie, Asia, or Albania) and probably reflects the hopes of landless knights to establish themselves abroad. The statement that an (English) man's home is his castle is from 16c.

v.

move in chess, recorded under this name from 1650s, from castle (n.), as an old alternative name for the rook, one of the pieces moved. Related: Castled; castling.

a military fortress (1 Chr. 11:7), also probably a kind of tower used by the priests for making known anything discovered at a distance (1 Chr. 6:54). Castles are also mentioned (Gen. 25:16) as a kind of watch-tower, from which shepherds kept watch over their flocks by night. The "castle" into which the chief captain commanded Paul to be brought was the quarters of the Roman soldiers in the fortress of Antonia (so called by Herod after his patron Mark Antony), which was close to the north-west corner of the temple (Acts 21:34), which it commanded.