Elephants are often observed licking clay from mud holes  There is ample evidence that other animals ingest clay because it neutralizes toxins in their diets
Since elephants eat many plants that contain toxic compounds, their licking of clay is probably triggered by toxins too
Elephants typically drink water immediately before or after they lick clay.