Prostate pain when having to urinate is mainly considered to be caused by pathological factors such as urinary tract infection, chronic prostatitis, prostate hyperplasia and so on. 1. Urinary tract infection: mostly associated with pathogenic microbial infections, bacteria enter the urethra and multiply abnormally, which may cause the patient to have urinary pain, urinary urgency, dysuria, lumbago and other symptoms, the urethral area is stimulated by inflammation when you have the urge to urinate, which can also cause prostate pain. 2. Chronic prostatitis: mostly related to irregular sex life, bacterial infection, etc., may appear urinary incontinence, urinary dribbling, urinary incontinence, pain in the urethra, etc., when there is a desire to urinate may be irritated by the urethral skin and mucous membranes, the prostate pain. 3. Prostatic hyperplasia: also known as benign prostatic hyperplasia, mostly associated with irregular sex life, bladder urethral orifice obstruction, etc., may lead to urinary pain, nocturia, urination difficulties and other symptoms, but also cause increased secretion of prostatic fluid, causing prostate pain. For people who experience prostate pain when they have the urge to urinate, it is recommended to go to the hospital in time to find out the cause of the pain and then actively treat it to avoid delaying the condition.