Hide

Hiding (also referred to as banishing) a unit causes it to temporarily disappear. It renders the unit unable to move, attack, cast spells and use items. All hiding spells also turn the affected unit invulnerable. Hidden units still gain experience and gold.

While hidden, a unit cannot be affected by any spell (with very few exceptions). For example, a would just fly through and possibly hit a unit behind the hidden unit.