The effect of a bottom slope on the merger of two identical Rankine vortices is investigated in a two dimensional, quasi-geostrophic, incompressible fluid. When two cyclones initially lie parallel to the slope, and more than two vortex diameters away from the slope, the critical merger distance is unchanged. When the cyclones are closer to the slope, they can merge at larger distances, but they lose more mass 1 into filaments, thus weakening the efficiency of merger. Several effects account for this: the topographic Rossby wave advects the cyclones, reduces their mutual distance and deforms them. This alongshelf wave breaks into filaments and into secondary vortices which shear out the initial cyclones. The global motion of fluid towards the shallow domain and the erosion of the two cyclones are confirmed by the evolution of particles seeded both in the cyclones and near the topographic slope. The addition of tracer to the flow indicates that diffusion is ballistic at early times. For two anticyclones, merger is also facilitated because one vortex is ejected offshore towards the other, via coupling with a topographic cyclone. Again two anticyclones can merge at large distance but they are eroded in the process. Finally, for taller topographies, the critical merger distance is again increased and the topographic influence can scatter or completely erode one of the two initial cyclones. Conclusions are drawn on possible improvements of the model configuration for an application to the ocean.