For the last 10-12 years, I've struggled with impure thoughts and masturbation. For a lot of that time, I struggled with porn as well. About 5 years ago I installed accountability software on my computer, and I got rid of that problem. I don’t use the software anymore, but I still don’t get tempted to look. However, I continued struggling with impure thoughts and masturbating after eliminating the porn. It was hard to delete the images I had viewed. However, about a year and a half ago God really began dealing with me that I needed to stop with the thoughts as well. I always thought it was wrong and tried to resist them, but God was making it clear I needed to get serious about it. Anyway, I tried for about a year, but never eliminated the problem. No matter how long I resisted for, I would always cave eventually. However, about a year ago, I really prayed hard that God would deliver me. For the next year, I never struggled with impure thoughts. It wasn’t even an issue. The main time I previously had struggled before was in the middle of the night when lying in bed, but not any longer. However, recently I started having impure thoughts again. And I’m not sure why. I don’t watch bad TV shows, or look at women in public. I guard my thoughts during the day. But in the middle of the night, I seem to get overloaded with these thoughts, and eventually I give in-just the way I used to. I’m not sure what to do to get rid of this problem. The thoughts only come during the middle of the night (just like before), when I don’t have anything else to occupy my mind. What do I do? Do I just get up and walk around until they go away? I’ve tried that with limited success, but when I get back in bed, they come right back. I’m sure I should try a little harder to resist, but I just get the feeling like my self efforts alone aren’t going to be enough. I’ve also told my pastor about the problem. He prayed with me, but immediately after I gave in again. I just don’t know what to do. I feel like I do everything right until night time rolls around. That’s when I don’t have anything else to fill my mind with, and then the thoughts start in. I’m not making excuses. Ultimately, as Paul says, no temptation has overtaken you except such as is “No temptation has overtaken you except such as is common to man; but God is faithful, who will not allow you to be tempted beyond what you are able, but with the temptation will also make the way of escape, that you may be able to bear it” I understand that this is something that is possible to overcome. I just don’t know how. Even when the thoughts went away, I never really overcame them. I wasn’t even really tempted. When I was, it seemed so mild I could easily get rid of it. However, lately the temptation has been stronger, and I’m not sure how to overcome it. Does anyone else experience this? Any suggestions? This is something that I have to get rid of, and I’m willing to do anything to make it happen. Thanks for the help.