Externalities are unintended side effects of production or consumption that are experienced by third parties. They can lead to market failures if full social costs and benefits are not taken into account. With negative externalities, social costs exceed private costs, resulting in too much of the good being produced from a social perspective. Positive externalities occur when social benefits are greater than private benefits, leading to underproduction of the good from a societal point of view. Diagrams are used to illustrate the concepts of private optimum versus social optimum and the associated welfare losses that can result from externalities.