Science fiction has been around since the dawn of civilization, with the first known work being A True Story by Lucian of Samosata, written in the second century AD. Mary Shelley, Edgar Allen Poe, and most importantly, Jules Verne all helped shape science fiction in literature. When moving pictures were invented, the fantastic tales of sci-fi were a natural fit.
Source:https://www.cbr.com/important-sci-fi-movies-everyone-should-watch/