The theory of point vortices is used to explain the interaction of a surface vortex with subsurface vortices in the framework of a three-layer quasigeostrophic model. Theory and numerical experiments are used to calculate the interaction between one surface and one subsurface vortex. Then, the configuration with one surface vortex and two subsurface vortices of equal and opposite vorticities (a subsurface vortex dipole) is considered. Numerical experiments show that the self-propelling dipole can either be captured by the surface vortex, move in its vicinity, or finally be completely ejected on an unbounded trajectory. Asymmetric dipoles make loop-like motions and remain in the vicinity of the surface vortex. This model can help interpret the motions of Lagrangian floats at various depths in the ocean.