What factors, other than diet, come into play with obesity and how commonly are those other factors in play?

Isn't it a fact that in almost all cases it is diet?