The Earth is composed of four main layers - the crust, mantle, outer core, and inner core. The crust and upper mantle make up the lithosphere, which is rigid, while the lower mantle and outer core are more plastic and move via convection currents. Earth's magnetic field originates from the flow of molten iron in the outer core.