Adam Smith, the father of modern economics, sought to demonstrate that markets (and economies) pre-existed the state, and hence should be free of government regulation. He argued (against conventional wisdom) that money was not the creation of governments. Markets emerged, in his view, out of the division of labour, by which individuals began to specialize in specific crafts and hence had to depend on others for subsistence goods. These goods were first exchanged by barter. Specialization depended on trade, but was hindered by the "double coincidence of wants" which barter requires, i.e., for the exchange to occur, each participant must want what the other has. To complete this hypothetical history, craftsmen would stockpile one particular good, be it salt or metal, that they thought no one would refuse. This is the origin of money according to Smith. Money, as a universally desired medium of exchange, allows each half of the transaction to be separated.
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.