How do horses defend their territory?

they rear and buck the other horses, so keep your distence when near horses fighting because you might get hurt. the back legs can hurt you but the front legs can kill you