As a result of the Punic Wars (264–146 BC), when Rome struggled to establish itself as a dominant power, many new temples were built by magistrates in fulfillment of a vow to a deity for assuring their military success.