These lecture notes review the topological string theory and its applications to mathematics and physics. They expand on material presented at the Takagi Lectures of the Mathematical Society of Japan on 21 June 2008 at Department of Mathematics, Kyoto University.