How To Lose Weight

I'm over weight, and I keep gaining more and more. I'll lose some, and then it'll come back. I've been under a lot of stress lately and I guess I'm eating all the wrong things. But the point is, I can't seem to lose weight, and when I do manage, I can't keep it off. Any ideas? Tips?