Which is a leading theory for the formation of fossil fuels? ONitrogen fixated , forming hydrocarbons . B. Earth's magnetic field shifted, resulting in hydrocarbons . C. Dead animals and plants were compressed for many years . D. Carbon accumulated due to excess nitrogen levels .