The study of the historical processes that have shaped the geographic distribution of populations and species.