Weak nonlinear interactions in water of non-constant depth between an incident wave, a side-band incident wave and a relatively low frequency trapped wave are shown to lead to the generation of the trapped wave. Three situations are considered in detail: edge waves in a wide rectangular basin, progressive edge waves on a straight beach, and standing waves in a narrow wave tank.