The traditional discrete complex image method (DCIM) is not efficient when the source and field points are in different layers because all the spatial coordinates can not be analytically included in the image terms in spatial domain. A two dimensional method (2D-DCIM) is introduced in this paper. In the new methodology we reorganize the spectral kernel as a 2D function. We use the 2D matrix pencil method (2D-MPM) to fit this 2D function and to generate a set of complex images independent of any spatial coordinates. The closed-form spatial domain Green's function can be obtained for arbitrary locations of source and field points in general multilayered media. Compared with traditional 1D-DCIM, we do not have to run MPM for each vertical combination of source and field points. The efficiency of the matrix filling kernel of method of moments (MoM) is significantly improved.