Several lifestyle changes can help improve sexual function, including regular exercise, a healthy diet, stress management, and avoiding smoking or excessive alcohol consumption. These habits can enhance overall physical health, promote hormonal balance, and increase energy levels, positively impacting sexual desire and performance.