A collision between a 2600 DWT oil tanker and the substructure of one railway continuous beam bridge is simulated using ANSYS/LS-DYNA. In the simulation, the dynamic interaction between the soil and piles is considered through contact coupling algorithm and nodes sharing algorithm. The time history of ship collision force, penetration and velocity of the ship for the two different algorithms are presented, and relations of them are given. In addition, energy dissipation in every parts, deformation response and stress distribution of the substructure are analyzed in detail. The results indicate that rules of ship-bridge collision given by the two algorithms are in good agreement. Finally, reliability of the simulation in this paper is demonstrated through the comparison with specifications.