What is the meaning of -ban?

Inside a definable space. Question word: hol? (where?).

In a defined period of time. Question word: mikor? (when?)

In some situation or condition. Question word: hogyan? (how?)

The cause or trigger of something. Question word: miért? (why? for what reason?)

In some adverbs.

In some postpositions.

Rōmaji transcription of ばん

Source: wiktionary.org