The basic function of commercial banks in an economy is the generation of credit or money. This is predicated on the idea that not every depositor will take their entire balance out of the bank at once. In this manner, credit can be created through demand deposits by using the funds to extend credit to others.