"Time Bandits" is a 1981 British fantasy film created by Terry Gilliam. It follows the adventures of young history buff Kevin, who can scarcely believe it when six dwarfs emerge from his closet one night. Former employees of the Supreme Being, they've purloined a map charting all of the holes in the fabric of time and are using it to steal treasures from different historical eras. Taking Kevin with them, they variously drop in on Napoleon, Robin Hood and King Agamemnon before the Supreme Being catches up with them.
Time Bandits Wiki
From Time Bandits Wiki
What sort of Supreme Being created such riffraff?