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 galaxy-wide empire. The story revolves around Hari Seldon, a mathematician who predicts the impending collapse of the empire and establishes a plan to preserve knowledge and shorten the dark ages that will follow. Foundation is a seminal work in science fiction, known for its grand scope and intellectual depth.