Market failures occur when the allocation of goods and services by a free market is not efficient, leading to a net social welfare loss. These failures often justify government intervention to correct inefficiencies and improve overall economic outcomes.