Your body uses food for energy. It stores any excess energy as fat. This means if you eat more food than your body needs for daily activities and cell maintenance, you'll gain weight.
To lose weight, you need to get your body to use up these stores of fat. The most effective way to do this is to:
reduce the amount of calories you eat
increase your levels of activity.
This is why experts talk about weight loss in terms of diet and exercise.