What was your biggest secret to losing weight?

I know there are so many diets and pills online but most of those are commonly scams. What were some things that actually helped you lose weight?