An externality is a cost or a benefit associated with an economic activity that affects a third party not related to the activity.
Externalities can be overcome when they are internalized into a business.
This can be achieved through appropriate government policies that would curb the spilling over of these effects onto third parties.
Some of these measures include:
Taxation
Subsidies
Defining Property Rights