Michael Faraday (1791–1867) is credited with inventing the electric generator in 1831.
Faraday demonstrated electromagnetic induction: moving a copper disk through a magnetic field (or vice versa) generates electric current. His "homopolar generator" (copper disk rotating between magnet poles) produced continuous DC current.
Faraday's law (∇×E = -∂B/∂t) is the foundation of all electromagnetic power generation: hydro, coal, nuclear, wind, solar (via inverters).