Elephants demonstrate social hierarchy within their herds through various behaviors such as dominance displays, physical interactions like pushing and shoving, vocalizations, and communication through body language. Older and larger elephants typically hold higher positions in the hierarchy, with matriarchs usually being at the top of the social structure. The hierarchy helps maintain order within the herd and ensures that resources such as food, water, and mating opportunities are distributed fairly.