Foundation is a science fiction novel written by Isaac Asimov. It is set in a future where a mathematician named Hari Seldon predicts the fall of the Galactic Empire and establishes a foundation to preserve knowledge and guide humanity through the dark ages. The novel explores themes of politics, psychology, and the cyclical nature of history. It is considered a classic of the genre.