The Earth is divided into three chemical layers: the core, the mantle and the crust.
The core is composed of mostly iron and nickel and remains very hot, even after 4.5 billion years of cooling. The core is divided into two layers: a solid inner core and a liquid outer core.
The middle layer of the Earth, the mantle, is made of minerals rich in the elements iron, magnesium, silicon, and oxygen.
The crust is rich in the elements oxygen and silicon with lesser amounts of aluminum, iron, magnesium, calcium, potassium, and sodium.
There are two types of crust. Basalt is the most common rock on Earth. Oceanic crust is made of relatively dense rock called basalt. Continental crust is made of lower density rocks, such as andesite and granite.