Externalities and how to correct them

When a cost or benefit lands on someone outside the trade, the market quantity differs from the efficient one; a tax or subsidy equal to the external effect, or tradable permits, puts the quantity right.

From Principles of Microeconomics.