An Electro-diesel locomotive is an electric locomotive which also has a diesel engine. The diesel engine is used when an electricity supply from overhead lines or a third rail is not available.