The foamy urinary frequency may be caused by acute pyelonephritis, acute cystitis, acute prostatitis and other factors. 1. Acute pyelonephritis: usually caused by upstream infection, bloodstream infection and other factors, the onset of a more acute, more obvious symptoms, the main symptoms of frequent urination and urgency and the presence of foam in the urine, may also be accompanied by systemic symptoms, such as fever, chills, weakness, nausea, and so on. 2. Acute cystitis: It may be related to poor hygiene of the lower body, which can lead to inflammation and infection of the bladder, due to the inflammatory substances on the bladder stimulation, and the presence of pus secretions in the urine, leukocytes and other substances, the frequency of urination and urgency of urine with the symptom of foam. 3. Acute prostatitis: may be related to unclean sex, frequent masturbation and other factors, when the infection is aggravated, resulting in a large prostate, and the presence of a small amount of prostate fluid in the urine, there will be frequent urination with foamy symptoms, accompanied by perineal swelling and pain. There may be other reasons for frequent urination with foam, patients need to consult a doctor for examination and early treatment.