Summary:

If a unit is damaged, the "Fortify Until Healed" button appears in its Action buttons. If you click on this button, the unit will fortify and remain in its present location until it is fully healed. See the section on Fortifications for details of the defensive benefits of fortification.