move your king over two squares. make sure you are not in check, or passing THROUGH check.
Swap king n rook?

There is a full explanation of castling under the special rules section of this page:
http://www.chess.com/learn-how-to-play-chess.html#special
I'm on an iPhone and can't seem to sWap the rook and king..how do u do it?