The direct exchange of one commodity for another without the mediation of money is called barter. This system of exchanging goods for goods continued to prevail before the invention of money.