Conventional scientific opinion has attributed weight gain to a net surplus of calories due to burning fewer calories than taking in. Opposing this view, the carbohydrate-insulin model states that diet quality matters more for weight loss than total calorie intake.
Source: Medical News Today