Fermat, a lawyer by profession, was a mathematical genius. Apart from being regarded as the founder of modern number theory, he made seminal contributions to calculus and probability theory. In this article, various mathematical works of Fermat are discussed briefly along with the notoriously difficult FLT associated with him.