Shrek rescues Princess Fiona from a dragon-guarded tower.
Lord Farquaad (the ruler of Duloc) promises Shrek his swamp back in exchange. While Farquaad isn't a king initially, he seeks to become one by marrying Fiona. Shrek's rescue thwarts Farquaad's scheme and ultimately restores Fiona to her rightful place, indirectly serving the kingdom's true interests.