How do Sedimentary Rocks Form?

Sedimentary rocks are generally formed due to the compaction of previously eroded rocks and other minerals. This is usually due to pressure from successive layers of material stack on top of each other.