Impermanent loss happens when the tokens you deposit in a liquidity pool change in price, so that when you withdraw them, their value is less than it would have been if you had just held them.