Tides are the rise and fall of sea levels caused by the combined effects of the gravitational forces exerted by the Moon and the Sun and the rotation of Earth.

The times and amplitude of tides at any given locale are influenced by the alignment of the Sun and Moon, by the pattern of tides in the deep ocean, by the amphidromic systems of the oceans, and the shape of the coastline and near-shore bathymetry (see Timing). Some shorelines experience a semi-diurnal tide—two nearly equal high and low tides each day. Other locations experience a diurnal tide—only one high and low tide each day. A "mixed tide"—two uneven tides a day, or one high and one low—is also possible.

Tides vary on timescales ranging from hours to years due to a number of factors. To make accurate records, tide gauges at fixed stations measure water level over time. Gauges ignore variations caused by waves with periods shorter than minutes. These data are compared to the reference (or datum) level usually called mean sea level.

More Info: en.wikipedia.org