Hammurabi also established a bureaucracy of government officials to administer his empire. Among these officials were tax collectors known as "tax farmers." They gave Hammurabi the means to pay for his army, palaces, temples to the gods Shamash and Marduk, and royal lifestyle.