The king is the most important piece in chess. When a king is attacked by another piece, it is said to be in check. If the king is in check, it must avoid capture immediately. If the capture cannot be avoided, the game is over (the king is not actually captured in chess). This is known as checkmate.
The king also has the ability to perform a special move known as castling.


