Many offshore marine structures are built on seabeds with slight or considerable slopes, while most analytical studies have focused on the dynamic responses of horizontal seabeds. Based on the theory of porous media, an analytical solution for the response of a sloping seabed to earthquakes is developed in this paper. Stress and displacement responses can be shown at any location of the seabed.Using numerical examples, we analyze the influence of the slope angle, frequency and angle of incident waves, and thicknesses of the seawater and sediment layers on the dynamic response of the seabed. The results show that the solid displacement amplification factor of the surface of the horizontal seabed is always constant, while that of the sloping seabed changes periodically along the seabed surface. Even at a small site, the difference between a horizontal seabed and a sloping seabed is still significant. The slope angle has different effects on the seabed at different depths, and the inclination plays an amplification role at some depths and a reduction role at other depths. With an increase in slope angle, the difference between a horizontal seabed and a sloping seabed becomes more significant. Especially at natural frequencies, the amplification factor becomes more significant with increasing slope angle. Therefore, even though the same seawater depth is used in the model, a horizontal seabed model cannot be used to analyze the dynamic response of a sloping seabed or significant errors will occur.