This trope is Older Than Dirt since it appears in several real life mythologies, where the god's trickery is used as a lesson for the audience. These gods teach indirectly, through inducing/induced hardship, and people learning from it, instead of giving direct instruction. Because of that, they are often associated with storytelling and are as commonly the victim of pranks and mischief as they are the provocateur.
Sub-Trope of Stock Gods and The Trickster. Other stock gods that overlap with this trope include God of Chaos ("chaos" may encompass randomness, potential, entropy, and destruction/disordered creation), Lady Luck (luck is fickle), and God of Knowledge ("knowledge" may encompass cunning and trickery).
- Rat Queens: Castiwyr is introduced as an immortal illusionist who sets elaborate (and potentially lethal) pranks for mortals to alleviate his boredom. He is present in the deities' realm and thus qualifies as a technical god.
- Wonder Woman:
- Wonder Woman (1987): Hermes' trickster nature isn't fully evident at first due to his crush on Diana, but it comes out when he's around the other Olympians and Ares makes it clear that he finds it both endearing (when aimed at anyone but himself) and incredibly annoying.
- Wonder Woman (2011): The New 52's version of Hermes does not have a crush on Diana, which ensures that one of his biggest bits of trickery is against her when he makes it seem they are on the same side and have the same goals while working against her since their goals align to a point.
- 9 Chickweed Lane: God/"God", an incredibly smug, wormy-looking little man in a suit who previously decided to replace humans with cockroaches because he couldn't stand that such petty things resembled him, starting with a pregnant ex-nun's fetus she gave birth to a perfectly normal baby human girl. Later He talked about quitting his job and letting "the suits" take over and claiming that he prefers the "small talk" of said ex-nun's prayers to "Sister Caligula's" strict performance reviews.
- Downplayed example in Enlightenments. The god Dormin doesn't consider trickery to be one of their main domains, but they do occasionally tease Wander as the two of them become friends. And they do come up with a pretty impressive bit of misdirection to try and free Wander from his abusive relationship with the Queen of the Castle in the Mist.
- The Divine Cities: Jukov was the trickster Divinity of pleasure, corruption, chaos, madness, rebellion and a few other things. Stories of him playing tricks on his believers, like changing their form or luring them somewhere, abound. His favourite animal was the starling, but he seemed to favour birds in general, often turning himself or his followers into birds.
- Hoki the Jokester, a god who was banished from Dunmanifestin after pulling "the old exploding misteltoe trick" on Blind Io.
- Scrappy the kangaroo, in The Last Continent, works for the Old Man Who Carries the Universe in a Sack.
A creature like him appears in many belief systems, although the jolly name can be misleading. Tricksters have that robust sense of humour that puts a landmine under a seat cushion for a bit of a laugh.
- African Mythology: Anansi the Spider is often known as the god of stories/knowledge because he tricked sky god Nyame into selling him every story that was ever told. The price was the capture of four dangerous and/or elusive creatures and Anansi promised to deliver five. Many Anansi tales show him being the clever one, and tricking someone else, but many also show Anasi being tricked, if you are clever enough yourself.
- Aztec Mythology:
- Huehuecoyotl, aka the Old Coyote, from Aztec Mythos is a shape-shifting trickster known for being equally likely to perpetrate cruel pranks against his fellow gods and mortal alike while also be prone to throwing grand parties as a god of storytelling, music, dance and merriment. Unfortunately for the Old Coyote, Huehuecoyotl's tricks frequently backfire and cause more trouble for himself than the intended victims.
- Tezcatlipoca subverts the archetype in that he was at the same time an authority figure and a very important one at that. The only times he was really trickster-ish was mainly when he wanted to annoy his brother, Quetzalcoatl. However, he was definitely at the far "god of chaos" end of the trickster archetype much of the time. Alternative names for him translate approximately to things like "he to whom we are his slaves", "change through violence" (likely a reference to revolution), and "enemy of both sides".
- Native American Mythology:
- The Coyote plays this role in the legends of the Southwest Native American groups. Depending on the story, he ranges from simply being a clever animal to an outright god. Personality-wise, he ranges from an unreliable-but-friendly ally to humanity, to a too-clever-by-half Jerkass-ButtMonkey who teaches people how to behave by negative example, to the personification of chaos, definitely powerful, but nobody's friend.
- The Raven fills the role in the Pacific Northwest, where he is an anti-hero sort of deity. His claim to fame would be stealing the sun from its keeper, allowing light to come into the world for the first time ever.
- Norse Mythology:
- Loki, one of the most famous examples thanks to his appearances in The Mighty Thor and various adaptations. He's a spirit of chaos, and Odin's bloodbrother, who's mostly kept around because he's useful, but ends up causing more trouble than he helps and eventually betrays the gods (though not entirely without reason...)
- Odin is also a trickster in Norse mythology, though more beloved than Loki. One of Odin's common actions is to hide as a human among mortals and check their hospitality, honor, etc. It's even theorized that Odin and Loki originated as the same character, but the myths evolved to split them so that the negative aspects were all concentrated into Loki.
- Maui, the demigod from Pacific Mythology, most recently depicted in Moana. Among his achievements were stealing fire from the Underworld (the island goddess Te Fiti's heart in Moana), fishing out New Zealand (and the Hawaiian Islands, and basically every island Polynesians live on) from the ocean, and lassoing and beating the living crap out of the Sun until it agreed to slow down and not streak across the sky so quickly
- A little-known god is Sibú from the mythology of the Bribri people of Costa Rica. He used his powers to play pranks on demons, like bringing dead animals (that they were about to eat) back to life, and killing his own (demon) grandfather and tricking the other demons into eating him. He later created the earth by tricking his own niece into dancing with demons and then getting trampled to death by them.
- Classical Mythology has Eris the goddess of discord (whose throwing an apple labeled "For the Fairest" among three goddesses when she wasn't invited to a demigod's wedding was actually the cause of the Trojan War) and a more positive trickster in Hermes. While usually known as the messenger of the gods, he was also known for cunning and inventiveness; his first exploit was stealing the cattle of Apollo, earning him the mantle of god of thieves.
- Star Trek: The Next Generation: According to some of the novels, Q is the Ur-Example for this trope In-Universe, with every trickster god, alien and human (including Loki and Prometheus, where the Q Continuum strung him out on a cliff and had wild animals eat out his internal organs repeatedly for giving humans the gift of fire on a whim) being based in some shape or form on him... and for good reason. He can transform/transport people with the snap of his fingers, but tends to help people learn moral lessons while putting them in dangerous situations.
- Supernatural: The Norse trickster god Loki goes around playing Deadly Pranks on various people, usually to take the haughty down a peg or two. It's later revealed that Loki had actually made a deal with the Archangel Gabriel to impersonate him for a few millennia, as Gabriel didn't want to have anything to do with the War in Heaven.
- Dungeons & Dragons: In the distant past, the goblin pantheon included a cunning trickster deity. This god was slain alongside almost all the other goblin gods when the deity Maglubiyet slaughtered the goblin, hobgoblin and bugbear pantheons in order to claim their races, but found a way to have the last laugh on its killer. The slain god survived in shattered form as many bodiless spirits, which appear when Maglubiyet commands his followers to assemble into hosts and possess goblins, turning them into the chaotic and destructive nilbogs and giving them magical powers focused on mischief and mockery in order to sow chaos and ridicule in Maglubiyet's forces.
- Warhammer: Ranald the Trickster is the Empire's god of thieves, luck and those who live by their wits. Most of his legends involve him making fools out of the other gods, typically by tricking them into doing something stupid or by stealing something important.
- Warhammer 40,000: Cegorach, the Laughing God of the Eldar, has a strong predilection for achieving his goals by tricking his enemies into doing his job for him — for instance, he once tricked the Outsider, a C'Tan, into eating its fellows, which in one stroke killed off numerous C'Tan and drove the Outsider itself quite insane.
- Desktop Dungeons: Tikki Tooki likes money (he's the only god that lets you trade Gold for Piety) and appreciates dirty tricks like killing weaker enemies and using poison. He dislikes it when you drag out combat (getting hit by the same enemy more than once) or be cowardly and use death protection. As for his boons, he provides bonuses involving First Strike, Dodge chance, and Poison, XP gain, and a Gold bonus.
- Dragon Age: Both the Andrastian Chantry and Corypheus, one of the Magisters, agree on this much; the Old Gods tricked the Magisters Sidereal into entering the Golden City. The difference is what exactly the "trick" was. According to the former, it was persuading them to betray The Maker and corrupt heaven. According to the latter, it was that the Black City was already empty and corrupted before they got there. Word of God is that the Black City was verifiably golden in appearance before the Magisters' attempt to invade it, however, which raises even more questions. There's also Fen'Harel, the Dread Wolf, trickster god of the Elven pantheon, who seems to serve a similar purpose to them as Loki did to the Aesir — solving almost as many problems as he causes before one day he goes too far and gets branded a traitor. As his title suggests, he's now considered a sinister, corrupting influence, preying on the dreams and souls of the elves without mercy after sealing their gods away out of spite. It does not appear to be the whole truth, but the primary source of that claim is Fen'Harel himself.
- Dungeon Crawl: Nemelex Xobeh is a Chaotic Neutral god who appreciates trickery and gambling, so they give their followers magical decks of cards to use.
- Hades: Hermes, while being the messenger, is also the god of thieves and is just as prone to trickery as he was in the original myths. He's collaborating with Charon to help Zagreus find Persephone behind the other Olympians' backs.
- Path of Exile: When passing through a Mirror of Delirium, a "Strange Voice" whispers words directly into the player character. He's hinted to be the trickster god Tangmazu, whose greatest achievement was turning the goddesses of the sun and moon into eternal enemies. However, his trickery is less pranks and more deception, and his words are meant to bring out paranoia, hysteria, and despair and recontextualizes phrases to make them sound more sinister.
- Critical Role: In the second campaign, Jester is devoted to the Traveler, a god who is curiously not in the official pantheon for Exandria. This is because he's Artagan from the first campaign, who accidentally went from archfey to godhood through posing as one to a young Jester and gained a cult of followers as time went by. When the actual god of Trickery finds out, she isn't too pleased but accepts the transfer of most of Artagan's followers to her.
- In The Simpsons, when the family travels to Machu Picchu looking for Bart, they find a bush shaped like his head. Homer takes it as the work of Incan god Viracocha, which he calls "that trickster god".