Inflation occurs when aggregate demand exceeds aggregate supply in an economy. When supply is less than demand, prices rise as too much money chases too few goods. This demand-pull inflation happens when consumers and businesses want to buy more than the economy can produce, creating upward pressure on prices.