Exchange rates can affect inflation by influencing import and export prices. If a country's currency depreciates, imported goods become more expensive, leading to higher consumer prices. Conversely, a stronger currency can lower import prices and contribute to lower inflation.