Lithification is the geological process through which sediments compact under pressure, expel connate fluids, and gradually become solid rock. This transformation is crucial in the formation of sedimentary rocks and involves processes like compaction and cementation.