Very simple. You buy one currency with another currency. Later you reverse the transaction. If you've done it right, you earn money.
For example, buy 1000 Euros when the rate is 1.30 Euros/$ and you'll spend $1300. If you sell your Euros when the rate is 1.31 Euros/$ you'll get $1,310...