Commodity money gets its value from its own worth, like with precious metals (e.g. gold and silver), salt, or even shells. Fiat money has attributed value because a government declares it legal tender - it has no intrinsic value.