Obesity is the result of an interplay between environmental and genetic factors. Several genes that may contribute to weight gain and body fat distribution. the primary cause of obesity only in a a few cases are genes.
Genes can directly cause obesity in specific disorders such as Bardet-Biedl syndrome and Prader-Willi syndrome.
Heredity plays a role in obesity but generally to a much lesser degree than many people might believe.