The study of how genetic changes occur over time and how they contribute to adaptation and evolution.