Maars form as a result of volcanic eruptions, but what's special about them is that the eruption is actually a steam explosion. Rising magma may come up fast enough that the groundwater can't get out of its way. In that case, the water at some point flashes into steam. That's the same mechanism that creates geysers, only much more energetic. Eruptions that involve water are classified as phreatic ("free-ATtic").