Long-run equilibrium and efficiency
Entry and exit shift market supply until price equals minimum average total cost and economic profit is zero; there price equals marginal cost, so the market is allocatively efficient, and producing at minimum ATC makes it productively efficient.
From AP Microeconomics.