Tandem configuration is an effective methodology to reduce flow separation on compressor blade suction surface and to improve blade loading. However, in modern highly loaded cases, corner separation remains as its single blade counterpart. In this study, non-axisymmetric endwall profiling (NAEP) was utilized in a highly loaded tandem cascade (diffusion factor D = 0.69), aiming at reducing its severe corner separation and revealing the unique flow mechanism while NAEP is utilized in tandem cascade. NAEP was designed in both forward (F) blade and rare (R) blade separately, and was investigated numerically in tandem environment. Results show that, NAEP in F blade passage can effectively eliminate the corner separation and reduce loss generation, whereas NAEP in R blade passage has no positive effect on corner separation and even promotes loss production. The optimal NAEP approximately removes the corner separation completely, with loss coefficient reducing by as much as 37.8%. The optimal NAEP for the tandem cascade features optimal axial location at the origin of corner separation. There is an optimal NAEP height (0.02 of blade height), under which NAEP can achieve pretty good control effect while the peak of NAEP varies in a large axial location range. In the tandem configuration, it is found that NAEP transfers blade loading from R blade to F blade; the static pressure increases significantly for the entire cascade, but the static pressure distribution of F blade does not exhibit as the design intent of NAEP. In addition, it is interesting to find that the flow turning near endwall reduces after endwall profiling, which is unique in tandem cascade and is contrast to the view on conventional configuration. On the contrary, NAEP in R blade has no influence on the corner separation of the tandem cascade; due to the decrement of cross-passage pressure gradient for R blade, the flow overturning near endwall reduces.