The Tyrannosaurus is a dangerous predator who lives in the jungle near the city of Ziggarock. He first appears when Aladdin, Genie, Iago, Carpet and Abu come in the jungle to get food for the inhabitants of Ziggarock. The Tyrannosaurus attacks them and tries to eat Iago, but Carpet comes to rescue him. He then strikes Genie with his tail and attacks the others, but Abu, whose a prophecy said that he is destined to be the liberator of Ziggarock, tries to fight the Tyrannosaurus. However, Aladdin tells him that its too dangerous and the group get out of the jungle with Carpet.
Later, Aladdin imagines a plan to trap the dinosaur. Carpet puts a giant X on the ground, while Genie and Iago place explosives on the boulders above. Then, they go in the jungle to find the Tyrannosaurus, who quickly attacks them. They manage to lure him to the X and Genie detonates the bombs, exploding the boulders who fall on the dinosaur and bury him.
At night, the Tyrannosaurus escapes out from underneath the boulders and climbs the mountain to the city. He encounters a young boy and pursues him, but the boy manages to escape from the dinosaur. Shortly after, the Tyrannosaurus attacks the villages and the group during their feast and devours most of the food. He also accidentally destroys the statue of Abu with his tail. Aladdin and his friends try to distract him while the villagers escape, however the giant beast manages to hit Aladdin with his tail, then he destroys a house and the debris fall on Carpet, trapping him. Genie tries to intervene, but the Tyrannosaurus crushes him with his foot. He then comes toward Aladdin, however Abu suddenly jumps on and blinds the dinosaur with bananas. He also throws fruit at the reptile and manages to lure him to a cliff, and the Tyrannosaurus finally falls to its death, nearly taking Abu with it.