SUMMARYThe lubrication theory is extended for transient free-surface ow of a viscous uid inside threedimensional symmetric thin cavities of thickness that varies in the ow direction. The problem is ÿrst formulated for a cavity of arbitrary shape. The moving domain is mapped onto a rectangular domain at each time step of the computation. The pressure, which in this case is governed by the modiÿed Laplace's equation, is expanded in a Fourier series in the spanwise direction. The expansion coe cients are obtained using the ÿnite-di erence method. Only a few modes are usually needed to secure convergence. The ow behaviour is strongly in uenced by the cavity thickness. The ows inside a straight, contracting, expanding, and modulated cavities are examined. It is found that while the evolution of the front is always monotonic with time, that of the velocity at the front can be oscillatory if the degree of contraction of the cavity (whether modulated or not) is signiÿcant. The velocity of the contact point along the lateral walls is usually larger than that at the front, leading to the straightening of the front. However, for modulated cavities, the front may advance at a faster rate, leading to its own undulation.