The outermost layer of Earth (apart from the atmosphere) is the crust, which consists of moving tectonic plates. When these plates grind and collide, they create folds and uplift that form mountain ranges, and they cause continents to shift position. These processes occur over millions of years.