A shortage occurs when the quantity demanded of a good or service exceeds the quantity supplied at a given price. This imbalance between supply and demand often leads to higher prices, as consumers compete to obtain the limited available resources. Shortages can result from various factors, including government intervention, changes in market conditions, and shifts in consumer preferences.