Fermat was a lawyer and government official most remembered for his work in number theory, in particular for Fermat's Last Theorem.