Tides are caused by the gravitational forces of the moon and sun interacting with Earth's oceans, which creates two bulges of water that result in two high tides and two low tides each day. The changing positions and distances of the moon and sun relative to Earth cause variations in tide heights and times. Spring tides occur during new and full moons when the sun and moon are aligned, producing the highest tides, while neap tides happen when the sun and moon are at right angles, resulting in lower tides.