In this paper, a high-order compact stencil for solving the convection–diffusion equation in two dimensions is proposed. The convection and diffusion terms are both approximated by means of radial basis functions (RBFs) that are constructed over 3×3 rectangular stencils. Salient features here are that (i) integration is employed to construct local RBF approximations; and (ii) through the constants of integration, values of the convection–diffusion equation at several selected nodes on the stencil are also enforced. Numerical results indicate that (i) the inclusion of the governing equation into the stencil leads to a significant improvement in accuracy; (ii) when the convection dominates, accurate solutions are obtained at a regime of the RBF width which makes the RBFs peaked; and (iii) high levels of accuracy are achieved using relatively coarse grids.