Castling involves both rook and King moving to their respective squares whether it be a King-side castle or queen-side castle . When castling , the king moves two squares towards the rook , and the rook moves over the king to the next square , i.e. , black's king on e8 and rook on a8 move to : king c8, rook d8 (Long Castling) , white's king on e1 and rook on h1 move to : king g1, rook f1 (Short castling) ~ look to the related link below for additional information regarding castling .
Chat with our AI personalities
Yes, if the rook is attacked, you can still castle. You just can't castle if the rook is either in check, or would be castling through check.