Pierre de Fermat was one of the greatest mathematicians in history, making highly significant contributions to a wide range of mathematical topics. He was a guiding light in the invention of calculus; he independently co-invented analytic geometry; he invented probability theory in cooperation with Blaise Pascal and made masterful contributions to number theory. He is best remembered for his last theorem, which defied the best efforts of mathematicians for over three centuries.