Markets are institutions that exist to facilitate exchange, that is, they exist in order to reduce the cost of carrying out exchange transactions. In an economic theory which assumes that transaction costs are nonexistent. markets have no function to perform, and it seems perfectly reasonable to develop the theory of exchange by an elaborate analysis of individuals exchanging nuts for apples on the edge of the forest or some similar fanciful example. This analysis certainly shows why there is a gain from trade, but it fails to deal with the factors which determine how much trade there is or what goods are traded.