Treatment depends on the cause. If the cause is physical, the treatment will be aimed at correcting the medical or biological problem. For example, if the cause is hormonal imbalance, hormonal supplements may be prescribed. If the cause is a structural problem, such as a cyst or tumor, surgery may be needed. Sometimes, treatment can involve changes in behavior. Better control of chronic illnesses and disease often solves sexual problems associated with them.Some medications can cause sexual problems, and changing prescriptions to those with fewer side effects can treat the problem. Regardless of the cause, counseling, ideally with a sexual therapist, is recommended and should include both partners together. Treatment can include treating the physical or medical problem and counseling.