King Julien banishes Maurice and Mort from his kingdom after a mishap with his throne, and he later gets separation anxiety. So the penguins reunite the lemurs.
After Maurice and Mort accidentally break Julien's throne, Julien banishes them—splitting the habitat, with their half being only 10% and a shed next to the lemur habitat. Julien later misses them when he starts playing games that involve 2 people or more.
He soon goes to the penguins because they are the only animals that ever come without being called there. He notices that Mort and Maurice throw a party without inviting him. He asks the penguins to come to a party that Julien throws.
The penguins help him make the party better and Julien invites 4 stuffed animals. The penguins notice that without his true friends, he went insane trying to look for people who love him (as much as he loves himself).
The penguins take Mort and Maurice to show him how Julien went insane. Maurice says to the penguins that he just wants to teach Julien a lesson, not driving him crazy. He leaves his small shed (which is roomier than it looks) and goes back to Julien's half. Julien tells them to forget about how they broke his throne and become friends again.