Supply and demand shifts occur when external factors cause the supply or demand curves to move, altering equilibrium price and quantity in a market. These shifts can be caused by changes in consumer preferences, technology, input prices, or government policies, impacting overall market dynamics.