In The Wealth of Nations, Adam Smith explained how a competitive market could channel self-interest into socially beneficial directions.