When the production of a good or service has a negative effect on those who are not involved in the production process.