Cosmology has been revolutionised during the last decade due to a number of precision experiments. The resulting picture of the universe is both very simple and surprising, and poses a number of challenges for any theory of fundamental physics. After an elementary introduction to modern cosmology and to string theory, I will discuss how one can connect these two fields. In particular, I will focus on the appearance of De Sitter spacetime in string theory and supergravity.