PG&E Corp. said it would shut down California’s last operating nuclear power plant by 2025 and ask state officials to replace its generating capacity with renewable power sources.

It will be cheaper to shut down Diablo Canyon Power Plant’s nuclear reactors and find replacement power than it would be to run the plant after 2025, said Tony Earley, chief executive of PG&E.

That...