Why do tides appear at both sides of the earth?

It is the effect of the moon's gravity on earth's oceans.