Spitting is a defense mechanism and also a way to ward off unwanted attention. For example, a female might spit if she wants to discourage a male’s attention. A male might spit at another male to express dominance. Sometimes alpacas spit to warn others away who are encroaching on their food source.