If the urine is foamy and smells bad, the patient needs to be further asked if there are symptoms of urinary tract irritation, and it is recommended to go to the hospital for relevant examinations to clarify the cause.1. If the urine is in a concentrated state, there can be foam during urination, accompanied by an odor, along with yellowish urine color. But it will not be accompanied by any symptoms such as frequent urination, urinary urgency and painful urination. After drinking more water and urinating more often, the foamy and smelly urine can be improved or disappear. This foam usually lasts for a short time and can dissipate in a few moments, while the foam is relatively large. 2. If the solute component in the urine is increased, such as the protein component in the urine is increased, or the urine contains more white blood cells, bacteria, pus, etc., there can also be an increase in urine foam or an odor. In this case, the foam is small and persists for a long time and dissipates slowly. The patient also has swelling of the face, or symptoms such as frequent urination, urgency, painful urination, and pain in the urethra. Urine should be collected for laboratory and culture tests to determine the cause of the disease, and then anti-infection treatment or symptomatic treatment to protect kidney function should be given.