The study of how organisms adapt and change over time through natural selection and genetic variation.