Foundation is a science fiction novel written by Isaac Asimov. It is the first book in the Foundation series, which spans thousands of years and explores the rise and fall of civilizations in a distant future. The story revolves around a mathematician named Hari Seldon who predicts the impending collapse of the Galactic Empire and establishes a foundation to preserve knowledge and guide humanity through the dark times. Foundation is a masterful blend of science fiction, politics, and philosophy.