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 Hari Seldon, a mathematician who predicts the impending collapse of the Galactic Empire and establishes a plan to preserve knowledge and shorten the dark ages that will follow. Foundation is known for its intricate plotting, political intrigue, and exploration of themes such as psychohistory and the nature of power.