The government departments that set a country's electricity policy: climate and capacity targets, market design, subsidies and auctions, and (in many countries) ownership of the state power company itself.
Energy ministries are one player in the electric distribution utilities industry, and an industry of their own, with their own suppliers, customers, software, regulators, and money flows. This full map is on the roadmap.
Meanwhile: how energy ministries fit into electric distribution utilities