Nonlinear wave-body interactions for a stationary surface-piercing body in water of finite depth with fiat and sloping bottoms are simulated in a two-dimensional numerical wave tank, which is constructed mainly based on the spatially averaged Navier-Stokes equations with the k- ε model for simulating the turbulence. The equations are discretized based on the finite volume method and the scheme of the pressure implicit splitting of operators is employed to solve the Navier-Stokes equations. By using the force time histories, the mean and higher-harmonic force components are calculated. The computational results are shown to be in good agreement with experimental and numerical results of other researchers. Then, the horizontal force, the vertical force and the moment on the surface-piercing body under nonlinear regular waves with flat and sloping bottoms are obtained. The results indicate that the bottom topographies have a significant influence on the wave loads on the surface-piercing body.