Mirzakhani was born in May 1977 in Tehran, Iran. She enjoyed math and puzzles in high school. She earned her bachelor’s degree at the Sharif University of Technology in Tehran. Mirzakhani then went to Harvard to earn a Ph.D. in 2004.