For example, magnesium oxide is made up of two elements, magnesium and oxygen. Its formula is MgO. This shows that it has one atom of magnesium for every one atom of oxygen.
One of the most abundant elements on Earth (the sixth in order of weight abundance), magnesium occurs naturally in crustal rocks, mainly in the form of insoluble carbonates, sulfates and silicates.