The idea of free trade came into prominence in the late 18th century and largely replaced the then-dominant idea of mercantilism. Ever since the ideas and publications by Adam Smith and David Ricardo came to light, there has been a consensus among economists that free trade is a net benefit for the whole of society.