Thanks for using "Ask The Doctor" for posting your query.
Thickening of foreskin suggests that there is some infection of the foreskin. It could be a fungal infection or a bacterial infection. This may impair the erection as well. This will require careful examination of the penis for identifying the type of infection.
Do meet your doctor and get the penis examined.
Hope this helps,
Wish you a good health.
These Q&A’s are for educational purposes and should not be relied upon as a substitute for medical advice you may receive from your physician. If you have a medical emergency, please call 911. These answers do not constitute or initiate a patient/doctor relationship.