The man who arguably founded modern economic theory, the 18th-century Scottish philosopher Adam Smith, popularized the idea that barter was a precursor to money. In The Wealth of Nations, he describes an imaginary scenario in which a baker living before the invention of money wanted a butcher’s meat but had nothing the butcher wanted.“No exchange can, in this case, be made between them,” Smith wrote. 

Barter, the direct exchange of goods or services—without an intervening medium of exchange or money—either according to established rates of exchange or by bargaining. It is considered the oldest form of commerce. Barter is common among traditional societies, particularly in those communities with some developed form of market. Goods may be bartered within a group as well as between groups, although gift exchange probably accounts for most intragroup trade, particularly in small and relatively simple societies. Where barter and gift exchange coexist, the simple barter of ordinary household items or food is distinguished from ceremonial exchange (such as a potlatch), which serves purposes other than purely economic ones.