The correct answer is:
A. Gravity causes sediment to settle in layers.
Rock strata form primarily through the accumulation and compaction of sediment over time, which is influenced by gravity. As sediment is deposited in bodies of water, it settles in layers, which can eventually become compacted and cemented into sedimentary rock.