A negative externality occurs when an individual's or a firm's actions impose costs on others that are not reflected in the market price of a good or service. This often leads to overproduction or consumption of goods, as the responsible parties do not bear the full costs of their actions, resulting in a misallocation of resources in the economy. Such external costs can affect social welfare, prompting discussions about potential government intervention to correct these market failures.