The story of Shrek from the Shrek franchise.
Shrek was born in a unknown swamp where he lived with his parents as a child. His father tried to eat him and his mother never gave to him so much affection and his parents abandoned Shrek when he was 8 years old because it was an "Ogre Tradition". Shrek tried to be accepted by the people but failed because they believed who him was a "horrible beast", so Shrek find a swamp who becomes his home but is presumably who sometimes people attack his swamp despite being all times scares by Shrek and they runs away. Shrek so lived a solitary life.
In the first film, Shrek is shown as a recluse who lives a fairly carefree life in his swamp. At first, he appears to like being by himself and enjoys scaring people, but not hurting them. Even though his background is unknown, it is assumed that most ogres hurt people, but Shrek isn't violent.
One day in the forest, a talking Donkey enters Shrek's territory pursued by a group of knights. The head knight orders Shrek to be arrested, but Shrek effortlessly scares them off and saves Donkey. A grateful Donkey thanks Shrek repeatedly (to the latter's irritation) and convinces him to spend the night outside of Shrek's house. However, more fairy tale creatures soon arrive and begin to overcrowd his swamp. Shrek demands to know why they have come and learns that Lord Farquaad has dumped them all there. Outraged, Shrek takes Donkey and goes to his castle to demand his swamp back.
Upon arriving at Farquaad's castle in Duloc, he defeats every knight in a contest to determine who will rescue the Princess Fiona. When he wins, this intrigues Farquaad and he cuts a deal with Shrek: If he rescues his princess, he will give Shrek's swamp back. Shrek agrees and the duo set out once again to the dark castle Fiona is locked away in, guarded by a fire-breathing dragon. But first, Shrek and Donkey have to cross the only rope bridge to the castle hanging precariously over a lake of lava. Once inside, Shrek orders Donkey to find stairs because the princess will be in the highest room of the tallest tower while Shrek himself searches for the Dragon. Unfortunately, Donkey inadvertently finds the dragon and Shrek is forced to fight it, only to be flung by its tail right through the roof of the tallest tower. While Donkey keeps the dragon occupied, Shrek meets Princess Fiona for the first time and leaves with her in tow. After they rescue Donkey and escape from the castle, Fiona insists that Shrek take his helmet off, and is repulsed by the fact that Shrek is an ogre. Shrek appears not to care and takes Fiona by force to Farquaad. As nightfall approaches, Fiona demands they stop for the night, but secludes herself in a cave for reasons unknown. That night, Shrek and Donkey bond while stargazing, and Shrek confides in Donkey that he chooses to live alone because most people (except Donkey) prefer to fear and stereotype him rather than try to get to know him. The next day, the trio continue on to Duloc and encounter the Merry men, where Fiona reveals her impressive martial arts skills. After the fight, Fiona notices an arrow in Shrek's butt and orders Donkey to find a blue flower with red thorns just to get rid of him. Despite some difficulty, Fiona manages to remove the arrow and they continue their journey. Throughout the rest of the trip back to Farquaad, Fiona warms up to Shrek and Donkey and Shrek begins to fall in love with Fiona. However, when bringing her a flower that evening after stopping to camp at an old mill, Shrek overhears Fiona talking to Donkey about how no one could love an ugly monster. Shrek thinks she's talking about him, and enraged and hurt, he goes and brings Farquaad and his knights to take her to his castle. As promised, Shrek gets his swamp back and he is by himself once again. However, Shrek is still not happy, so after an intense argument, he apologizes to Donkey, with the latter convincing Shrek to get Fiona back. They take Dragon (whom Donkey started a relationship with) to Lord Farquaad's palace. Shrek crashes their wedding and confesses to Fiona that he loves her. At first, Fiona tells him that he's too late and prepares to kiss Farquaad. However, the sun begins to go down, and Fiona transforms into an ogre too, surprising Shrek. However, Farquaad is disgusted with her now and orders her and Shrek arrested. As the guards grab them, Shrek finds himself overwhelmed, but manages to summon Donkey and Dragon. They burst through the stained glass windows of the church and Dragon eats Farquaad, killing him.
Shrek and Fiona kiss, breaking her curse, but permanently turning her into an ogre. Fiona is still unsure about herself, but Shrek assures Fiona he still thinks she's beautiful, and they get married. The story ends with Shrek and Fiona's wedding, and going off in an onion carriage on their way to their honeymoon.
After a joyful honeymoon, Shrek and Fiona return home to the annoying house-sitter Donkey, urging that they wish to be alone. Later, messengers of Fiona's kingdom "Far Far Away" deliver the invitation from her parents whom wish to meet her new husband. Shrek doesn't want to go, but Fiona feels it's important to have Fiona's father's blessing.
After a long carriage ride, Shrek and Fiona make their grand appearance in front of the entire kingdom, resulting in everyone being stunned. With some awkward greetings and suggestive angry stares, the meeting moves onto a dinner where Shrek and King Harold fight over dinner about raising children, after Harold belittles Shrek, just for being an ogre. Fiona blames Shrek for everything and she feels the relationship is one-sided since she changed for him and yet he remains unwilling to accept her family or even try to be friends with them, though no fault of his own. She tells Shrek that he should change for her and leaves.
After being threatened by the Fairy Godmother, Harold convinces Shrek and Donkey to meet him on a hunting trail where they can get to know one another. They are then spotted by Puss in Boots, who was hired by King Harold to kill Shrek. He attacks Shrek but soon coughs up a hairball and fails. When the misunderstanding is resolved, Puss vows to accompany Shrek to make amends for the mistake. Shrek then uses a card the Fairy Godmother had given him earlier and decides to meet with the Fairy Godmother at her factory for help in mending his relationship with Fiona.
In the factory, the trio are dismissed by the Godmother's bigotry against Ogres having happily ever afters and instead went to search for a beauty potion under the guise as workers. Shrek grabs the potion and the trio escape. While leaving, Shrek reads the potion though Donkey tries it first to see if its effective. Shrek drinks as well, thinking it doesn't work on donkeys, though the results are the same except with more gas. The trio find shelter from the rain in a small barn where Donkey and Shrek inexplicably pass out, with the same effects happening to Fiona in Far Far Away when she wanted to leave since her parents never gave Shrek a chance.
In the morning while the potion activates, Shrek was turned into a handsome human and Donkey into a stallion, greeted by three farmhand girls. In Far Far Away, Fiona surprisingly finds herself back in human form as well, but is tricked by Charming into believing that he is Shrek. After being manipulated by the Fairy Godmother, Shrek leaves believing Fiona would be happier with the prince of her dreams until he discovers that the Godmother is Charming's mother and intends to force Fiona to fall in love with him. Shrek, Donkey and Puss are arrested after being spotted but they are seen by Gingy and the others. To storm the castle, Shrek and Gingy visit the Muffin Man whom creates a giant gingerbread man to help in their quest. Shrek and Donkey storm through the castle with Puss fending off the guards.
Later, Shrek, Puss, Doneky, and the other Fairy Tale Creatures battle with the Fairy Godmother, who tells Charming to kiss Fiona. The kiss proves ineffective since Harold didn't spike her tea with the love potion that was intended. Out of rage, the Fairy Godmother strikes at Shrek with her wand, but Harold's inference reflects the magic back at her, reducing her to bubbles. It's revealed he is actually a frog whom the Fairy Godmother had given a happily ever after and gives his blessings to Shrek and Fiona. When the clock strikes midnight, Shrek tells Fiona that if she wishes to stay in their human forms, then a kiss at that moment would make the spell permanent, despite him giving up his joy and lifestyle of being an ogre. Fiona makes him wait until they return back to normal, declaring she loves him as he is as the one she married. A celebration goes underway with the seemingly dysfunctional family becoming a truly grand one in song and dance.
Shrek the Third
Shrek and Fiona take on the responsibilities as King and Queen while Fiona's father Harold remained bedridden. After many overwhelming mistakes and disasters, Shrek is ready to give up and leave until a messenger tells them that the Frog King was dying. Despite Harold's confidence in Shrek being a good king, he did mention of another heir named Aurthur, and left it to Shrek to do the right thing.
Not wishing to rule and rather return to the swamp, Shrek, Donkey, and Puss start heading to search for Arthur with upon their leave Fiona telling Shrek that she is pregnant. Shrek starts to have a nightmare of having too many babies, later, seeing Donkey with a baby ogre's face as the nightmare continues. Shrek admits to Donkey that mostly he's afraid of being a bad parent, since ogres aren't generally known for being kind or loving. His own relationship with his father probably played a role in his own parenting fears. Shrek first finds Artie at his high school, where everyone was bullying him. Shrek starts to make Artie to go to Far Far Away, but Artie becomes uneasy by Puss and Donkey's bantering of the royal duties that await him. After being ship-wrecked, Shrek begins to lose his patience with the boy, but in light of Donkey's advice, attempts to communicate with him in "street". His attempts all fail until it is revealed that Artie's father had abandoned him, which allows Shrek to find kinship with Artie since he too had father-issues with his own father. In the morning, Shrek defeats Captain Hook and the others sent by Charming, then with Merlin's help, returns to Far Far Away.
Upon realizing that Artie is the heir, Charming prepares to kill him, but Shrek stops him and boldly insults the poor boy, stating that he needed some fool to fill the royal job. Shrek becomes disenchanted over hurting Artie's feelings, but keeps his sense of humor until his friends arrive to the rescue with Artie talking the villains into reforming themselves (after Artie realized he should save Shrek and that he didn't mean anything he said to Charming). Artie assumes the role of king and Shrek now feels he is capable of being a father. The last scene shows he is the proud parent of triplets, and though makes mistakes, proves to be a great dad.
Shrek Forever After
By the fourth chapter, Shrek's heroism and all he's done for Far Far Away have made humans lose their prejudice over ogres. Shrek is also now treated like a folk hero. He also enjoys being a parent, but soon enough, gets sick of it.
At the triplets' first birthday, he starts getting angrier, and eventually loses his temper and smashes the birthday cake in anger. When Fiona confronts him, Shrek mourns for his life "when the world made sense". When Fiona asks if this means before he'd rescued her, Shrek cruelly confirms this. A shocked Fiona says that Shrek has "everything", before returning to the party, disappointed in him. Rumpelstiltskin has watched the scene, and seizes his chance.
As Shrek walks away, saying he isn't apologizing, he overhears cries for help and lifts the carriage under which Rumpelstiltskin was stuck. The dealer insists on giving Shrek a ride and a meal, where Shrek says he wished he has just one day to feel "like a real ogre again". Rumpelstiltskin immediately gives him a deal, though Shrek is still reluctant to sign, thinking that he couldn't leave his family like that, though he eventually signs.
Shrek initially likes his day, but after seeing wanted posters for Fiona, he rushes to his swamp to find her, though she is nowhere to be found. Shrek is then captured by Rumpelstiltskin's Witches, and when he awakens in a carriage pulled by Donkey, Donkey doesn't know who he is.
Shrek then brought to Rumpelstiltskin, confronting him over the deal, and escapes with Donkey. Donkey initially is terrified of Shrek, but learns to trust him after seeing him cry. When Donkey smells waffles in the forest, Shrek warns him, but Donkey ignores Shrek's warnings and licks the waffle, and falls into a hole. Shrek follows him and ends up in the Ogre Resistance.
Shrek fights with Cookie to get Donkey back, until Fiona arrives. Shrek runs to her, but Fiona kicks him in the face. Shrek then tries to explain, believing their relationship is still existent, but Fiona believes he is crazy and laughs at him.
Shrek then meets an overweight Puss In Boots, and tries to explain the situation, but Fiona arrives. Shrek tries to kiss her, but she pulls back, and Shrek leaves her tent. Shrek later tries a different approach to Fiona, arriving when she is fighting fake wooden witches. Fiona thinks he is getting killed in the ambush, and Shrek that he'll be fine, but Fiona tries to prove him wrong by playfully fighting him. Puss In Boots, watching them, realizes that Shrek is Fiona's true love, though he decides that he should wait until Fiona realizes this herself.
Puss In Boots talks to Shrek about this, where Shrek reveals to Puss that he knows that he is Fiona's true love, and is trying to prove it to her. Puss advices him to tell her when she is alone something only her true love will know. Shrek tries during the ambush, telling Fiona everything about her, and inadventely letting the Pied Piper to control the ogres, including themselves. Puss and Donkey come to their rescue, and they fall into a river.
Fiona leaves to save her friends, but Shrek insists she kisses him, saying it will fix everything, but since Fiona doesn't truly love yet, it proves ineffective. Fiona then rushes to save her friends, and Shrek mourns for his life, after which Donkey asks that "if [his] life was so perfect, then why did [he] sign it away to Rumpelstiltskin in the first place", where Shrek shouts that he didn't know what he had until it was gone.
Rumpelstiltskin, desperate to capture Shrek, promises the deal of a lifetime to whoever can turn Shrek in. Shrek then turns himself in, telling Rumpelstiltskin that since he turned himself in, he gets the deal of a lifetime. Rumpelstiltskin panics, believing Shrek intends to use to get his old life back, but Shrek instead uses it to free all ogres. However, he has kept Fiona, since she is not "all ogre", meaning she is a princess by day. Meanwhile, the ogres, Puss and Donkey stay behind the castle, and Donkey mentions that "he and Shrek busted out of that place". The Brogan asks how, Donkey replies that it is the same way they're going to bust in.
Rumpelstiltskin then tries to feed Shrek and Fiona to Dragon, thereby destroying any chance of the contract being voided, However, the ogres (who were hidden in the ball) raid the castle. Meanwhile, by helping each other, Shrek and Fiona subdue Dragon and capture Rumpelstiltskin.
As the sun rises, Shrek starts to fade from existence. However, Fiona, who now loves him, kisses him the second before he disappears. Puss then notices Fiona is still in her ogre form, proving the kiss did work, contrary to appearances, and reality is restored to just before Shrek originally lashed out at everyone. This time, when Fiona asks him if he is alright, he hugs Fiona, and tells her that he's never been better. The film ends as Shrek tells Fiona she is the one who rescued him when they met, and Shrek puts the book on the shelf, and joins his friends in a celebration, which ends the film, as every character is making mud angels.