The book introduces the general theory of relativity and includes applications to cosmology. After the necessary mathematical tools are introduced, we give a thorough presentation of the theory of relativity. The reader will get an updated introduction to general relativity including the most recent developments in cosmology.