You burn more calories than you eat and you lose weight. It’s that simple. All these tricks people use like glp-1 inhibitors and keto all serve the same goal of caloric restriction. GLP-1 reduces appetite which reduces calories, keto removes food groups from your diet and decreases hunger which reduces calories.
I’ve been dieting recently and lost 20 pounds just by diligently tracking and restricting my calories. 10 pounds lost in just the past month. In that time I’ve eaten bowls of pasta, pizza, gone out drinking, etc. All I do is accurately track everything I eat (everything), and if I have a less-strict day (like going drinking), I just eat less the next day to make up for it.
It’s simple, but it requires some discipline. That’s the real reason people have trouble dieting.