Using data on academic citations, career and educational histories of mathematicians, and disaggregated distance data for the world's top 1000 math departments, we study how geography and ties affect knowledge flows among scholars. The ties we consider are coauthorship, past colocation,...