Abstract The influence of an accelerating shear flow on the propagation of an internal gravity wave in a continuously stratified fluid is studied by means of two-dimensional numerical simulations. These are motivated by earlier laboratory experiments [Thorpe, S.A. 1978b. On internal gravity waves in an accelerating shear flow, Vol. 88. J. Fluid Mech. pp. 623–639]. In these experiments the mean flow is an accelerated Couette flow and the mean density profile is linear. The laboratory experiments revealed the striking effect of the unsteady shear flow in the evolution of an internal gravity wave leading to the wave focusing in a region where the flow is extremum. This phenomenon is associated with the growth of small scale density fluctuations. As a result density overturns are sometimes observed. This behaviour is well reproduced by the numerical simulations. We provide insights on the flow dynamics in particular on the possible occurrence of wavebreaking. We show that the dynamics is characterized by two competitive mechanisms that is a damping of the wave and a local enhancement of its steepness leading sometimes to density overturns. The budget for the energy of the wave reveals that the initial damping of the wave results from wave-mean flow interactions. These interactions lead to the development of a fine scale vertical density structure which is associated with high vertical shear. We find that in some cases wavebreaking occurs as a result of shear instability. The value of the acceleration of the mean flow is very likely to influence the onset of the instability. The scaling laws of the wave evolution, in particular the rate of decrease of its energy, are determined. From these laws the lifetime of the wave is found as a function of the acceleration of the shear. It may be expected that, in the ocean, this development will result in the largest fluctuations derived from wave-flow interactions occurring where the mean flow in the wave direction is greatest. Waves travelling normal to a two-dimensional shear flow will be unchanged. Waves travelling parallel will be damped. This may have particular application at the continental shelf where flow, mainly parallel to the isobaths, will damp waves travelling along-slope, but allows waves travelling normal to the isobaths (e.g., directly across the shelf-break) to be transmitted without attenuation. Similar effects are expected for the evolution of a high frequency wave interacting with a lower frequency (e.g., near inertial) motion.