Biogas, natural gas, and their usage in the diesel engine will be important in the future. For this purpose, the effects of biogas on engine performance, emissions, and engine vibrations of the diesel engines with dual fuel system are investigated in comparison with natural gas. It has also been included in evaluating the deformation of the engine oil due to hydrogen sulfide combustion reactions. In this study, a constant speed, naturally aspirated, and direct injection of the diesel engine with volume of 2.5 liter has been converted into a dual fuel system that can be included in gas fuels. In order to determine engine performance, exhaust emissions, engine vibration, and noise, the tests were carried out at load stages of 5, 10, 15, 20, and 25 kW and at a constant speed of 1500 rpm. The experiments were first performed in a mono operation condition of the conventional diesel fuel. Subsequently, tests were repeated under natural gas/diesel and biogas/diesel dual fuel operation