Banks use SWIFT codes to facilitate international transactions, allowing them to quickly and securely transfer money between banks located in different countries.