Laputa: Castle in the Sky , known as simply Castle in the Sky in North America, is a 1986 Japanese animated fantasy adventure film written and directed by Hayao Miyazaki. It was the first film produced by Studio Ghibli and was produced for Tokuma Shoten. It follows the adventures of a young boy and girl in the late 19th century attempting to keep a magic crystal from a group of military agents, while searching for a legendary floating castle. The film was distributed by Toei Company.