By royal decree, all citizens of the realm must make their clothing out of taffy and stand on their heads three times a day! Mondays have been outlawed! The color puce is an abomination!
In other words, this is when the lawmakers have gone insane. The usual result of your more literal cases of With Great Power Comes Great Insanity. Might have been written by The Caligula, or put up by the Hanging Judge in a Kangaroo Court. Often Played for Laughs—and is usually Black Comedy even in more serious examples.
Sometimes the law may not have been Loony in and of itself in the beginning (a law that prevents animal cruelty, for example), but the fact that Society Marches On and Technology Marches On makes any attempt at continuing to enforce the law seem insane (the animal the law was supposed to protect is long extinct, but the law has not been repealed or changed to account for it).
- Judge Dredd: Judge Cal passes a number of ridiculous laws during his insane term as Chief Judge, such as outlawing happiness. Sometimes he gets more creative:
Cal: I have today passed a law to maintain public order! Deputy Chief Judge Fish will announce it!
Cal: You have heard the law. The penalty for disobedience is death!
Esposito: From this day on, the official language of San Marcos [in Latin America] will be Swedish. Silence! In addition to that, all citizens will be required to change their underwear every half-hour. Underwear will be worn on the outside so we can check. Furthermore, all children under 16 years old are now... 16 years old!
Fielding Mellish: What's the Spanish word for straitjacket?
- In Monstrous Regiment, the god Nuggan has been reduced to this, with a list of Abominations that now includes babies, garlic, blue, rocks, ears and accordion players, although Vimes for one agrees with him on that last one.
- Books devoted to this subject include You May Not Tie an Alligator to a Fire Hydrant: 101 Real Dumb Laws and Donkeys Can't Sleep in Bathtubs and Other Crazy Laws.
- Gormenghast by Mervyn Peake: Gormenghast has so many strange laws and rituals that by the time someone has become its Earl they are probably quite insane themselves. So the laws and rituals become more insane. Gormenghast is the Crapsack World logical extreme of this trope.
- Alice's Adventures in Wonderland: The Queen of Hearts is defined by being a woman that has to be obeyed on every single little whimsical law she makes on the spot, even the ones that make no sense, and every single crime, no matter how small, all have the same sentence: beheading (thankfully the King pardons everyone when her back is turned, a fact omitted from the Disney version). When Alice first arrives to her kingdom, she meets a group of guards that are rushing to paint every rose on the garden red (they were white), because she just woke up in the morning hating them being white (and made them illegal). During Alice's judgement later on the book, the Queen kept on making things Alice did while defending herself illegal on the spot (and, again, kept calling for her beheading for each transgression).
- The song "King of Spain" by Moxy Früvous has a mild (and relatively benevolent) example:
I don't even give a care;
Let's make Friday part of the weekend
And give every new baby a chocolate éclair
- Dungeons & Dragons: In the adventure X3 Curse of Xanathon, the title curse causes the Duke of Rhoona to proclaim several odd laws, such as "All taxes must be paid in beer", "All riders must sit backwards on their horses" and "Horses can only be fed meat".
- Planescape; in Mechanus, the natives are so obsessed with laws, that you can be arrested for things like singing in a place where it isn't allowed — at a specific time of day. Regulus, the home of the modrons, is the worst. An introductory adventure involves the Player Characters being arrested for wearing the wrong color and sentenced to a community service task that will clearly take ten years to do. (If they successfully help the supervisor fight off some invading chaos imps, they can get the sentence reduced to time served.)
- Pathfinder: Mayor Barzillai Thrune's decrees at the start of Hell's Rebels include edicts to control rats and stray dogs, mandatory display of the queen's portrait, restrictions on the wear of embroidered clothing, a ban on drinking tea after sunset, and a ban on mint.
- Part of what marks Bretonnia as more generally backwards than their neighbors in Warhammer Fantasy is that nobles have absolute control over their domains. Given the sheer power that Bretonnian aristocracy enjoys, combined with the propensity to be exposed to sanity-crushingly horrible monsters and head injuries (and perhaps more than a touch of inbreeding), that has led to a vast number of bizarre laws unique to specific domains which only the King of Bretonnia can repeal. For example, in one domain, every male over a certain age is legally required to salute the rising full moon whilst shouting "Griffon fingers!" In a rare subversion of the trope, it's noted that unless somebody is actively enforcing the laws, Bretonnians generally don't bother — this means that as soon as whichever Upper-Class Twit passed the law is no longer ruling, then everybody stops bothering to pay attention to it.
- Final Fantasy Tactics Advance. In a case of Gameplay and Story Integration, Judges oversee every battle to ensure that you don't break some arbitrary law that changes every other battle. As the game goes on, the Prince of the Realm suffers something of a Villainous Breakdown and decreeing more and more laws.
- In the Feelies for Zork Zero, it is revealed that King Dimwit Flathead made every Thursday into "Birthday," on which everyone had to give him presents.
- The Elder Scrolls IV: Oblivion: There are two acts punishable by death in The Shivering Isles, attacking its ruler, Sheogorath, and attempting to grow a beard.
- The strip "Assorted Fruits of Wrath" has a crusading army get blown away by its own god for violating a scriptural law about not opening the wrong end of a banana (no mention of which end that is).
- In the strip "Don't", the town magistrate has to explain to the townsfolk that all the new signs forbidding things like "sex during thunderstorms" and "trimming your beard" aren't loony laws, but loony curses. The community spectre they're stuck with is a spiteful sort.
- The post-apocalyptic New Quahog in Family Guy was briefly ruled by Peter, who, among other things, randomly assigned duties from a "job hat" and not based on expertise.
Peter: Oooh, village idiot! That's a good one! On Tuesdays you get to wave your penis at traffic!
- The Simpsons:
- In "Homer Vs. the Eighteenth Amendment", the punishment for disobeying Springfield's prohibition law is to be launched out of the city by catapult.
- In "The Seven Beer Snitch", Homer is arrested for kicking five times into an old can that he found on the floor... because he wasn't accepted for a prison guard job at the Mr. Burns-owned private prison he is to serve his sentence on. Another law that makes it unlawful to be in public without hats is also mentioned, and they are all printed in a compendium of silly laws. It must be mentioned that they were only enforcing these laws to fill up Mr. Burns's prison.
- Gravity Falls: The titular town was founded by (ex-) President Quentin Trembley, and his lunacy was reflected with such things as a law that allowed humans to marry woodpeckers and the "Finders Keepers" Law (which essentially meant that: as long as you have physical possession of an object, it is legally yours;note and if someone else comes along and steals it, it is legally theirs — even if you could legally prove that they stole it from you, if you can't steal it back, then well... "losers weepers"). This latter one provides a pretty big source of drama during the first season finale.
- My Little Pony: Friendship is Magic: Chancellor Puddinghead may have been responsible for a few; according to the Equestria Girls special Forgotten Friendship, she tried to pass a law mandating earth ponies to drink carrot juice at every meal.
- Truth in Television: a quick Google search for "crazy laws" will inform you that it is illegal to forget your wife's birthday in Samoa, among other things. Many of these are urban legends, however: in Britain the Law Commission has published a list of which of the commonly-quoted ones are real.
- In Denmark, one law says that you are required to check that all important features in your car are working properly before driving. That means checking lights, brakes, steering wheel and honking your horn. Another law says that it's illegal to use your horn under any circumstances, and using it results in a 2000DKK fine.
- Yet another stupid law in Denmark: Attempting to break out of jail is not illegal, and if you're caught, you are merely required to carry out the remainder of your sentence. But if you manage to make it out of the prison, you are legally considered a free person, and cannot be arrested unless you commit another crime.
- As Terry Pratchett once put it, when magazines and websites say things like "In Speedtrap, Nebraska, it is illegal to shoot giraffes on a Sunday" what they probably mean is "Speedtrap has no local rule about shooting giraffes but probably does have some perfectly ordinary public order laws, under which some drunken circus owner was once prosecuted."
- When Oliver Cromwell came into power after the English Civil War, he introduced laws (amongst others) that banned eating mince pies on the 25th of December and several other Christmas traditions, due to the Puritan desire to purge Christian religious festivals of "pagan" and "Catholic" elements.