In many countries, a bath at home goes like this. You run the water, climb in, soap up, wash your hair, maybe lie back for a while. Then you pull the plug, and the dirt goes down the drain with the water. The bath is where you get clean.

Now walk into a Japanese hot spring, an onsen. People don’t head straight for the big pool of steaming water. First they sit on low stools along a row of taps and showers and wash, head to toe. Only then do they step in and sit still. The small towel they carried in goes on the edge of the bath, or folded on top of their head. It never goes in the water.

To a first-timer, the order looks backwards. It stops looking backwards once you know what the water is for. In Japan the bath is not where you get clean. It is where you sit in hot water and relax once you are already clean, and the water is shared. Almost every rule you will meet comes from that one idea.

Wash first, then soak

An onsen bathroom has two parts. Along the wall is the washing area: taps, a hand shower, a plastic bucket and a small stool at each place. In the middle is the bath itself, big enough for many people.

Before stepping in, you scoop hot water over yourself. This is called kakeyu, “poured water”. Japanese onsen guides give it two jobs: it rinses off sweat and dirt so they don’t go into the bath, and it lets your body get used to the heat before you sink into it.

Most people also wash properly with soap and shampoo before their first soak, and rinse off every bit of foam. Some onsen guides suggest a slightly different order at strong mineral springs: a thorough rinse and a short soak first, then a gentle wash. Either way, the fixed point is the same. Soap never goes into the bath, and nobody washes in it.

The water belongs to everyone

Picture how many people use one bath in a single day. At a public bath, that means many strangers, one after another, all sitting in the same water. A guide for new residents from Edogawa, a ward of Tokyo, puts the rule simply: wash your body before you get in, because everyone uses the bath. It adds that you should rinse the stool and bucket with clean water when you are done.

Public bathhouses post the same rules on the wall: rinse before you enter, and don’t wash inside the tub.

Many people in Japan learn this order long before they see an onsen. A typical Japanese bathroom has a bathtub and, next to it, a floor with a drain where you wash. In many homes the family takes turns in the same tub of hot water, one after another, and each person washes outside the tub before getting in. At an onsen, people do much what they already do at home. They just share the water with strangers instead of family.

The towel and the hair

The small towel is for washing, and for covering yourself a little as you walk around. It stays out of the bath because whatever is on it, lint or leftover soap, would end up in water that everyone sits in. The same goes for long hair. Guides ask you to tie it up so that hair, shampoo and conditioner stay out of the water.

So why do some people wear the towel on their head? Onsen guides give a practical reason. Hot spring water warms you fast, and a cool, wet towel on your head helps keep you from getting dizzy or light-headed while you soak.

Our guide to Japan’s everyday rules sums the whole thing up in one line: wash before you get in, and keep your towel out of the water.

Hot water and the gods

There is an older layer to all this. Walk around an onsen town and you will often find a shrine that belongs to the hot spring. Many shrines called Onsen Jinja, “hot spring shrine”, honour the same pair of gods from Japan’s old myths, Ōnamuchi and Sukunahikona, and many old springs have a legend that these two found them. The names are long, but one story about them is short.

One of the oldest stories comes from Dōgo Onsen, in Ehime on the island of Shikoku. A book of local legends from about the eighth century, which now survives only in quotations, tells it: Sukunahikona fell gravely ill, and Ōnamuchi bathed him in the hot water that welled up there, and he recovered. Another old record, from Izumo in western Japan, calls a local spring “the water of the gods”. For centuries people travelled to hot springs to heal, staying a week or even three.

Shinto, Japan’s native religion, finds gods in many places: a mountain, a waterfall or an old tree can be home to one. It even speaks of eight million gods, a way of saying “more than you could count”. Hot water rising out of the ground fits easily into that way of seeing, as a gift.

Some Japanese accounts of bathing history go further. They trace bathing in Japan back to washing in sacred water to clear away impurity. It is one reading among several, and it fits the quiet care with which the water is still treated.

Back to the bathtub at home

So the order was never backwards. In the bath described at the start, you wash in the water, and then it goes down the drain. At an onsen the water stays. It is shared with everyone who comes after you, and for a long time it was thought of as something given.

Rinsing first, washing on the little stool, keeping the towel and your hair out of the water: they are all the same courtesy. You get clean before you get in, so the water is still good for the next person.