How do inefficiency occur in the market due to externalities?

How do inefficiency occur in the market due to externalities?