How can, by Raw, Animal Handling be used with a mount?

My question is: How can you use the animal handling skill in a mount? does it help to controll it, to make it not be afraid of something, etc or is just DM-dependent?