Therapy can help people better understand their sexual beliefs and behaviors, identify and address sources of distress, and treat any coexisting mental health conditions such as anxiety or depression. For people who have harmful beliefs about sex—that masturbation is sinful, for example—cognitive behavioral therapy can be particularly helpful for correcting false beliefs and alleviating distress.