In this study, the hydrodynamic interactions between two tandem foils undergoing fishlike swimming motion are investigated numerically by solving the Navier–Stokes equations with the immersed-boundary method. The two foils represent two tandem propellers attached on a concept ship. The thrusts and efficiencies at three typical Strouhal numbers, i.e., St=0.4, 0.6, and 0.8, are investigated. The results show that a fish situated directly behind another one does not always undergo a lower thrust. Whether it experiences a thrust enhancement or reduction depends on the Strouhal number. At a relatively low Strouhal number (e.g., St=0.4), the usual wake drag-reduction effect predominates over the drag-enhancement effect caused by the reverse von Kármán vortices, resulting in a thrust enhancement. The opposite happens at a relatively high Strouhal number (e.g., St=0.8). The downstream fish can benefit from the upstream one by slalom between the vortices rather than through them. For the upstream fish, the thrusts and efficiencies for all Strouhal numbers studied are higher than those for a single fish when the two fish are closely spaced, and approach those for a single fish as the spacing is increased.