To greatly simplify, money is a measuring unit, originally created by rulers to value the fees, fines, and taxes owed. By putting the subjects or citizens into debt, real resources could be moved to serve the public purpose. Taxes drive money. So, money was created to give government command over socially created resources.

