Genetics is the branch of biology that deals with heredity.