Do not allow the king to be in check or pass through check or move to check when castling. #2 Closed.