Kevin is a young boy fascinated by history, particularly that of
Ancient Greece. His parents ignore his activities, having become obsessed with buying the latest household gadgets. One night, as Kevin sleeps, an armoured knight on a horse bursts out of his wardrobe. Kevin hides under the covers as the knight rides off into a forest where his bedroom wall was; when Kevin looks again, the room returns to normal, and he finds one of his photos on the wall similar to the forest he saw. The next night, he prepares a satchel with supplies and a
Polaroid camera but is surprised when six
dwarfs spill out of the wardrobe. Kevin quickly learns the group has stolen a map and is looking for an exit from his room before they are discovered. They find that the bedroom wall leads to a portal. Kevin hesitates to join until the apparition of a floating, menacing head—the Supreme Being—appears behind them, demanding the map's return. Kevin and the dwarves find an empty void at the end of the hallway. They land in Italy during the
Battle of Castiglione. As they recover, Kevin learns that Randall is the lead dwarf of the group, which also includes Fidgit, Strutter, Og, Wally, and Vermin. The Supreme Being once employed them to repair holes in the
spacetime fabric, but the dwarves realised the potential to use the map that identifies these holes to steal riches and escape via time/space travel. With Kevin's help, they visit several locations in spacetime and meet figures such as
Napoleon Bonaparte and
Robin Hood. Kevin uses his camera to document their visits. However, they are unaware that their activities are being monitored by Evil, a malevolent being who can manipulate reality and is attempting to acquire the map. Kevin becomes separated from the group and ends up in
Mycenaean Greece, meeting King
Agamemnon. After Kevin inadvertently helps Agamemnon kill a
Minotaur, the king adopts him. Randall and the others soon locate Kevin and abduct him, much to his resentment, and escape through another hole, arriving on the
RMS Titanic. After it sinks, they tread water while arguing with each other. Evil manipulates the group and transports them to his realm, the Time of Legends. After surviving encounters with ogres and a giant, Kevin and the dwarves locate the Fortress of Ultimate Darkness and are led to believe that "The Most Fabulous Object in the World" awaits them, luring them into Evil's trap. Evil takes the map and locks the group in a cage over a bottomless pit. While looking through the Polaroids he took, Kevin finds one that includes the map, and the group realises that there is a hole near them. They escape from the cage, and Kevin distracts their pursuers while the others go through the hole. Evil confronts Kevin and takes the map from him. The dwarves return with various warriors and fighting machines from across time, but Evil effortlessly and comically defeats them all. As Kevin and the dwarves cower, Evil prepares to unleash his ultimate power. Suddenly, he is engulfed in flames and burned into charcoal; from the smoke, a besuited elderly man emerges, revealed as the
Supreme Being. He reveals that he allowed the dwarves to borrow his map, and the whole adventure had been a test. He orders the dwarves to collect the pieces of concentrated Evil, warning that they can be deadly. After recovering the map, he allows the dwarves to rejoin him in his creation duties. The Supreme Being disappears with the dwarfs, leaving Kevin behind as a missed piece of Evil begins to smoulder. Kevin awakens in his bedroom and finds it filled with smoke. Firefighters break down the door and rescue him as they put out a fire in his house. One of the firemen finds that his parents' new toaster oven caused the fire. As Kevin recovers, he finds one of the firemen resembles Agamemnon and discovers that he still has the photos from his adventure. Kevin's parents discover a smouldering rock in the toaster oven. Recognising it as a piece of Evil, Kevin warns them not to touch it, but they ignore him, do so, and explode, leaving only their shoes. As the Agamemnon-firefighter winks at the boy before leaving, Kevin approaches the smoking shoes and is seen from above as his figure grows smaller, revealing the planet and outer space, before being rolled up in the map by the Supreme Being. ==Cast==