Genetics is the study of genes, genetic variation, and heredity in living organisms. It encompasses how traits are passed from parents to offspring, the molecular mechanisms of inheritance, and the role of genes in development, disease, and evolution.