The classic example is Loki, the Norse god of mischief.
A trickster is a figure who disrupts order rather than upholding it — scheming, shape-shifting, and bending rules that other gods are bound by. Loki fits the mould precisely, occasionally helping the other gods out of trouble he created in the first place.
Tricksters appear in mythologies worldwide, from Anansi in West African stories to Coyote in many Native American traditions. They are rarely straightforward villains; their function is usually to expose the cracks in a tidy world.