Masters of the Universe is a 1987 American science fantasy film directed by Gary Goddard and starring Dolph Lundgren, Frank Langella, Jon Cypher, Chelsea Field, Billy Barty and Courteney Cox. It is based on the Mattel toy line of the same name. On the Planet Eternia, at the center of the Universe, Skeletor's army seizes Castle Grayskull, scatters the remaining Eternian defenders, and captures the Sorceress of Grayskull; he plans to add her power to his own by the next moonrise. Skeletor's archenemy, the warrior He-Man, veteran soldier Man-At-Arms, and his daughter Teela rescue Gwildor from Skeletor's forces. Gwildor, a Thenorian locksmith, reveals that Skeletor has stolen his invention: a "Cosmic Key" that can open a portal to any point in time and space. The device allowed Skeletor to breach Castle Grayskull; the group uses Gwildor's remaining prototype to travel to the Castle.