A time-dependent wave equation is derived so as to take into account the effects of currents and rapidly-varying bottom topography, based on the variational principle governing irrotational fluid motion. The derived wave equation is reduced to the equation of Kirby (1984) if there is no rapidly-varying bottom undulations. Some numerical computations are done, by using the equation, under the condition of constant slope with a certain current field.