Why do male cats urinate everywhere?
There are four main reasons why male cats urinate inappropriately: being in heat, retaliatory behavior, an unclean litter box, and urinary tract diseases.
1. Estrus
Male cats in heat will urinate and leave their scent around to attract the attention of female cats, which is normal.
2. Retaliatory behavior
Some cats, after being scolded by their owners, may develop a vengeful mentality and urinate indiscriminately.
3. The litter box is not clean.
Cats are very clean animals. If the litter box isn't cleaned for a long time, they won't like to use it and may urinate indiscriminately. Therefore, owners must clean the litter box regularly and keep the litter clean, and avoid using scented litter.
4. Suffering from urinary system diseases
If a male cat, in addition to urinating indiscriminately, also frequently squats in the litter box, urinates blood, or urinates excessively, it is highly likely to have a urinary system disease. Because of the urge to urinate, it urinates everywhere, such as urethritis or nephritis. 
How to prevent male cats from urinating indiscriminately
1. If an adult male cat is in heat, and you wish to breed it, you can have it bred. If you do not wish to breed it, you can have the male cat spayed/neutered.
2. If the behavior is retaliatory, the owner should punish it promptly, ideally catching the cat in the act and gently scolding it to let it know that this is wrong. It's also recommended that owners pay attention to their methods when training their cats to avoid causing them to develop a rebellious attitude.
3. Owners should clean the litter box regularly and keep the litter clean. Avoid using scented litter.
4. If the owner notices any abnormalities in the male cat, such as frequent trips to the litter box, blood in urine, or dribbling urine, it is recommended to take it to a veterinary hospital for examination and treatment as soon as possible.