Soldier

As a kingdom Hyrule must protect itself. And in many games there are castle guards that protect the important landmarks of the kingdom.

The Legend of Zelda: A Link to the Past
In The Legend of Zelda: A Link to the Past, these soldiers were under the influence of the wizard, Agahnim. They attack Link the moment they see him.

The Legend of Zelda: Ocarina of Time
In The Legend of Zelda: Ocarina of Time they guard Hyrule Castle and Kakariko Village. In order to meet with Princess Zelda as a child, you must infiltrate the castle and get past the guards. You can give the Keaton Mask to the soldier in Kakariko village who guards the gate to Death Mountain.

The Legend of Zelda: Majora's Mask
In The Legend of Zelda: Majora's Mask, there are soldiers that guard each exit of Clock Town. They will not let any children get past them. Link may only pass in Goron form and Zora form, Deku Link may not exit as he is seen as a child. In human form, Link may exit as they notice his sword and assume that he is an experienced swordsmen. Using the Lens of Truth, Link can locate an invisible soldier that has been injured. If you give him a potion he will reward you with the Stone Mask, the mask that granted him the ability to be invisible.

The Legend of Zelda: Twilight Princess
In The Legend of Zelda: Twilight Princess, There many soldiers that patrol in Hyrule Castle Town. They are very cowardly and many townspeople complain of their usefulness. Due to their cowardly ways a group of vigilantes take it upon their own hands to restore and preserve peace in Hyrule. As a wolf, the soldiers surround Link and attempt to drive him away, if you try to attack the soldiers run in fear for cover sometimes dropping their belongings.