The correct option is B dead vegetation
Coal is obtained from dead vegetation or dead natural forests. The forests got buried under the soil, and then more soil got deposited over them. These forests got compressed under the soil and then carbon got trapped in it. High temperature and pressure convert these dead vegetation to coal.