The ordered system of symbols which we know as heraldry came into being in the twelfth century to meet a military need. These symbols were emblazoned on shields, surcoats and fighting flags, and served as an invaluable means of identification when the features were obscured by the great helm.
Source: wiktionary