Soldier

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

''A fervent sense of duty runs through the veins of every Hyrulean Soldier, as it is their calling to protect the royal palace and maintain order. Hyrulean Soldiers make up the bulk of the Royal Guard.'' - From the Zelda.com encyclopedia

A Link to the Past
In A Link to the Past, Castle Guards appeared around Hyrule during the rainstorm at the beginning of the game. They prevented Link from straying too far from the castle, and they provided helpful advice. However, their fellows, and later themselves, fell victim to the evil influence of Agahnim, after which they would attack Link on sight. They are easy to defeat with a few sword swipes. They come in several varieties. The weakest wear green armor and wield a sword, dagger or bow. Those with bows usually hide in bushes and assault you when you get close. Stronger soldiers are blue and wield swords or bows. Red soldiers are the strongest and wield spears. A stronger variety of the soldiers are the Knights and Bomb Knights and even stronger than them are Ball and Chain Troopers.

Ocarina of Time
In 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.

Majora's Mask
In 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 swordsman. 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.

Four Swords Adventures
In Four Swords Adventures the soldiers appear to have been possessed once more, being one of the most populous foes in the game. They resemble their A Link to the Past counterparts greatly. A massive soldier known as Chief Soldier is powerful enough to serve as the boss of two stages: Lake Hylia and Death Mountain Foothills.

The Minish Cap
In The Minish Cap, they are found guarding Hyrule Castle and Hyrule Town. In the town, they would block Link from straying to places that were unsafe. In the castle, they would try and prevent Link from entering the castle. This triggers a segment reminicent of Ocarina of Time's Hyrule Castle Courtyard segment.

Twilight Princess
In 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.