Defense determines your chance of avoiding (dodging/blocking) a melee attack. It is the counterpart of Accuracy (which increases the chance that an attack will hit). Compare to Armour which decreases the damage received.
In addition to avoiding attacks, high Defense can also prevent the Off-Guard cross-tier effect.