How do I truly end lustful thoughts?

As many people I keep falling to sin, but I HATE it and it ruins my day and I can’t stop thinking about it. I currently don’t have a priest to talk to and I really need advice.