An interest rate swap is a temporary contact entered into between you and the bank with a view to transforming the interest rate on your loan. You may shift from a variable interest rate to a fixed interest rate and vice-versa.
This interest rate exchange is independent of your loan. No transaction is carried out on the capital.
You may protect yourself against a rise in rates or profit from any rate decline.