The Duloc Guards are loyal to Lord Farquaad and carry out his will without question. They are first seen rounding up fairytale creatures into wagons and cages with the purpose of removing them from Duloc and into Shrek's Swamp. After Donkey escapes capture, the Captain and a group of guards chase after him but end up running into Shrek. When the Captain orders Shrek and Donkey to be arrested they run in terror, leaving both their weapons and the Captain behind.
Some guards are present in the Duloc dungeon when Farquaad receives the Magic Mirror. They argue over which bachelorette Farquaad should choose before he selects Princess Fiona. Two stand guard with Farquaad at his tournament, and more take aim at Shrek and Donkey with crossbows at Farquaad's orders.
A group of guards accompany Farquaad when he goes to exchange the deed to Shrek's Swamp for Princess Fiona. A host of guards stand outside the Duloc Cathedral at Farquaad and Fiona's wedding, but scatter after Dragon lands next to them. After Fiona reveals her true form, Farquaad has his guards seize both Shrek and Fiona. When Dragon bursts in and eats Farquaad, most of them run away. A few guards are seen attending Shrek's wedding, seemingly having made peace with the fairytale creatures and Shrek.