When power from the local grid isn't available, generators step in. What does a generator do? Most generators use a fuel supply, such as diesel, gasoline or natural gas, to provide electrical energy. They provide backup power in case of blackouts and can serve as a power source in areas where electric service isn't available. You can use them to power everything from single devices to the electrical systems of entire buildings.