Why is more oceanic crust more dense than continental crust?

Oceanic crust averages 3 grams per cubic centimeter, Continental crust averages 2.7 grams per cubic centimeter. The difference lies in the rock which composes each type of crust. Oceanic crust is mainly basalt and continental crust is more like granite. Basalt is more dense (heavier) than granite.