Bifurcation analysis is introduced to a prototype Liesegang ring (LR) model to explain pattern formation as an instability of a propagating plane reaction front. A theoretical criterion for the onset of patterning is derived and numerically tested. The uneven spacing law of LR bands is explained as a consequence of the time varying velocity of the moving reaction front. Suggestions for controlling pattern formation are provided.