The earth's crust is made of up separate plates that ride atop a sea of magma. These plates are constantly shifting and interacting. The phenomena that affect the size and shape of the Earth's continents and ocean basins are subtle and occur over hundreds of thousands of years. (Image source: GIS-based plate boundaries, ETOPO2 global elevation data). Animated
version.