Ecogenetics is a branch of genetics that studies genetic traits related to the response to environmental substances.[1] Or, a contraction of ecological genetics, the study of the relationship between a natural population and its genetic structure.