I completely agree with you,Diet is undoubtedly necessary for maintaining or losing weight.
Eating clean and healthy food is the first step for making your physic better.
Second step is exercising by doing this you can surely achieve your goal.