Final answer:
Organic matter being compressed and heated is the process responsible for the formation of hydrocarbons.
Step-by-step explanation:
Hydrocarbons are formed through the breakdown of organic matter over long periods of time. The primary process responsible for this formation is when organic matter, such as plants and animals, is compressed and heated under layers of sediment. This compression and heat cause the carbon and hydrogen atoms in the organic matter to combine, forming hydrocarbon compounds.