Yield farming, also referred to as liquidity mining, is a way to generate rewards with cryptocurrency holdings. In simple terms, it means locking up cryptocurrencies and getting rewards.
In some sense, farming can be paralleled with staking. However, there’s a lot of complexity going on in the background. In many cases, it works with users called liquidity providers (LP) that add funds to liquidity pools.