— 1620
See wikipedia.
The castling rules of the modern game of chess were introduced in 1620 in France and 1640 in England.