Why is my cat spraying on the walls, and how do I stop it?
Spraying is marking: the cat backs up to an upright surface and squirts a small amount of urine. It is different from peeing on the floor, which is usually a litter box or medical problem.
Spaying or neutering stops or reduces spraying in most cats. Then look for stress: a new pet, a cat outside the window, a move or tension between cats. Clean sprayed spots with an enzyme cleaner, give every cat their own resources, and ask your vet about pheromone diffusers or medicine if it continues.