Some of the noxious atmospheric pollutants such as nitrogen and sulfur dioxides come from the fossil fuel combustion. Biodesulfurization and biodenitrogenation are processes which remove those pollutants through the action of microorganisms. The ability of sulfur and nitrogen removal by the strain Rhodococcus erythropolis ATCC 4277 was tested in a biphasic system containing different heavy gas oil concentrations in a batch reactor. Heavy gas oil is an important fraction of petroleum, because after passing through, the vacuum distillation is incorporated into diesel oil. This strain was able to remove about 40% of the nitrogen and sulfur present in the gas heavy oil. Additionally, no growth inhibition occurred even when in the presence of pure heavy gas oil. Results present in this work are considered relevant for the development of biocatalytic processes for nitrogen and sulfur removal toward building feasible industrial applications.