A diesel generator is a diesel-electric system, a diesel engine that powers a electrical generator to produce electricity. Diesel generators are located at places where there is no electricity supply from the electrical grid or for emergency supply if there is problem with the normal electricity supply.