It’s Carnival season, and that means bakeries throughout New Orleans are whipping up those colorful creations known as King Cakes. And while today it’s primarily associated with Big Easy revelry, the King Cake has a long and checkered history that reaches back through the centuries. Here are a few facts about its origins, its history in America, and how exactly that plastic baby got in there.

1. The King Cake is believed to have Pagan origins.

The king cake is widely associated with the Christian festival of the Epiphany, which celebrates the three kings’ visit to the Christ child on January 6. Some historians, however, believe the cake dates back to Roman times, and specifically to the winter festival of Saturnalia. Bakers would put a fava bean—which back then was used for voting, and had spiritual significance—inside the cake, and whoever discovered it would be considered king for a day. Drinking and mayhem abounded. In the Middle Ages, Christian followers in France took up the ritual, replacing the fava bean with a porcelain replica engraved with a face.

2. The King Cake stirred up controversy during the French Revolution.

To bring the pastry into the Christian tradition, bakers got rid of the bean and replaced it with a crowned king’s head to symbolize the three kings who visited baby Jesus. Church officials approved of the change, though the issue became quite thorny in late 18th-century France, when a disembodied king’s head was seen as provocation. In 1794, the mayor of Paris called on the “criminal patissiers” to end their “filthy orgies.” After they failed to comply, the mayor simply renamed the cake the “Gateau de Sans-Culottes,” after the lower-class sans-culottes revolutionaries.

3. The King Cake determined the early kings and queens of Mardi Gras.

A Mardi Gras King in 1952.dulouz cats via Flickr // CC BY-NC-ND 2.0

Two of the oldest Mardi Gras krewes (NOLA-talk for "crew," or a group that hosts major Mardi Gras events, like parades or balls) brought about the current cake tradition. The Rex Organization gave the festival its colors (purple for justice, green for faith, and gold for power) in 1872, but two years earlier, the Twelfth Night Revelers krewe brought out a King Cake with a gold bean hidden inside and served it up to the ladies in attendance. The finder was crowned queen of the ball. Other krewes adopted the practice as well, crowning the kings and queens by using a gold or silver bean. The practice soon expanded into households throughout New Orleans, where today the discovery of a coin, bean, or baby trinket identifies the buyer of the next King Cake.

4. The King Cake's baby trinkets weren't originally intended to have religious significance.

Although today many view the baby trinkets found inside king cakes to symbolize the Christ child, that wasn’t what Donald Entringer—the owner of the renowned McKenzie’s Bakery in New Orleans, which started the tradition—had in mind. Entringer was instead looking for something a little bit different to put in his king cakes, which had become wildly popular in the city by the mid-1900s. One story has it that Entringer found the original figurines in a French Quarter shop. Another, courtesy of New Orleans food historian Poppy Tooker (via NPR’s The Salt), states that a traveling salesman with a surplus of figurines stopped by the bakery and suggested the idea. "He had a big overrun on them, and so he said to Entringer, 'How about using these in a king cake,'" said Tooker.

5. Bakeries are afraid of getting sued.

What to many is an offbeat tradition is, to others, a choking hazard. It’s unclear how many consumers have sued bakeries over the plastic babies and other trinkets baked inside king cakes, but apparently it’s enough that numerous bakeries have stopped including them altogether, or at least offer it on the side. Still, some bakeries remain unfazed—like Gambino’s, whose cinnamon-infused king cake comes with the warning, "1 plastic baby baked inside."

6. The French version of the King Cake comes with a paper crown.

A truly royal-looking treat.Violet711/Getty Images

In France, where the flaky, less colorful (but still quite tasty) galette de rois predates its American counterpart by a few centuries, bakers often include a paper crown with their cake, just to make the “king for a day” feel extra special. The trinkets they put inside are also more varied and intricate, and include everything from cars to coins to religious figurines. Some bakeries even have their own lines of collectible trinkets.

7. There's also the Rosca de Reyes, the Bolo Rei, and the Dreikönigskuchen.

Versions of the King Cake can be found throughout Europe and Latin America. The Spanish Rosca de Reyes and the Portugese Bolo Rei are usually topped with dried fruit and nuts, while the Swiss Dreikönigskuchen has balls of sweet dough surrounding the central cake. The Greek version, known as Vasilopita, resembles a coffee cake and is often served for breakfast.

8. The King Cake is no longer just a New Orleans tradition.

From New York to California, bakeries are serving up King Cakes in the New Orleans fashion, as well as the traditional French style. On Long Island, Mara’s Homemade makes their tri-colored cakes year round, while in Los Angeles you can find a galette de rois (topped with a nifty crown, no less) at Maison Richard. There are also lots of bakeries that deliver throughout the country, many offering customizable fillings from cream cheese to chocolate to fruits and nuts.

9. The New Orleans Pelicans have a King Cake baby mascot—and it is terrifying.

That's one way to intimidate the opposing team.Jonathan Bachman/Getty Images

Every winter you can find this monstrosity at games, local supermarkets, and in your worst nightmares.