After you have attacked an enemy and lost units, you have 30 seconds to use gold for emergency help to save your fallen units. Keep in mind that the price is higher the more units were hit.