Ali Baba and the Forty Thieves is a 1981 dungeon crawler role-playing video game. It was released for the Atari 8-bit family, Apple II family, FM-7 and the NEC PC-8801 computers.
The player plays as Ali Baba, and travels through a maze-like map of the city and surrounding wilderness in order to rescue a princess. The game involves interaction with shopkeepers and enemies throughout the game's extensive map. Ali Baba and the Forty Thieves incorporates some Dungeons and Dragons conventions as well as various mythological and superstitious elements into the storyline and environment. These include the Western zodiac and ancient Arabic fairytales.
Softline stated that "Ali Baba displays a sense of creative humor that lifts it above routine adventure games ... The text is fresh, the action fast-paced". The magazine called the graphics "simplistic", but praised "its sense of discovery".