The financial resources of the Holy Temple relied, in part, on the spoils of military victories. When soldiers engaged in combat, they captured valuable property directly from the battlefield and gathered additional wealth from the territories they conquered. A portion of these spoils was then dedicated to God.
These dedicated riches were deposited and securely stored within the Temple treasuries. The primary purpose of collecting this wealth was to support the physical structure of the holy site. The funds were specifically set aside to finance necessary structural repairs and to ensure the ongoing maintenance of the building [מצודת דוד].