During the formation of the Midcontinent Rift System, these strata accumulated about 1.1 billion years ago as a series of basaltic lava flows and alluvial fans filled an ancient rift valley to depth of over 2 miles .