Market equilibrium is achieved through the interaction of supply and demand. When a market is in equilibrium, there is no excess supply (surplus) or excess demand (shortage). The equilibrium price is set where the quantity demanded equals the quantity supplied. Changes in factors like consumer preferences, production costs, or external economic conditions can shift the supply or demand curves, leading to a new equilibrium.