Lithification is the process in which sediments compact under pressure, expel connate fluids, and gradually become solid rock.