An elephant opening its mouth wide and taking in a deep breath. In humans yawning is usually an involuntary reaction to fatigue or boredom, or can be a reaction to stress or anxiety. Yawning can be contagious. 

While spontaneous Yawning is common across all vertebrates, contagious Yawning is less common and has only been observed in a few species of social animals. Interspecific contagious Yawning has only been observed between humans and chimpanzees, dogs and, most recently, elephants. 

References: Rossman et al 2021. (Full reference list)

This behavior occurs in the following context(s): Affiliative, Maintenance