A distributed power generation and energy storage system based on a hydrogen fuel cell car comprises a hydrogen energy internet management platform network connection hydrogen fuel cell car, a charging and discharging power transmission system, a vehicle-mounted energy storage system, a two-way charging and discharging pile power transmission system, a charging and discharging pile energy storagesystem, a hydrogen energy internet management platform, an internet of things and a block chain technology management system, a water-electrolytic hydrogen production, photoelectric combined hydrogenproduction and electric energy consuming compound hydrogen production and hydrogen storage device, a hydrogen refueling station, a mobile hydrogen refueling station, a hydrogen transporting vehicle and a power grid; and the matching between a power generation time of the social hydrogen fuel cell car and a power grid peak demand is intelligently managed and adjusted. The distributed power generation and energy storage system based on the hydrogen fuel cell car has the advantages that complete cleaning and zero emission of traffic energy can be realized, the energy is effectively recycled and utilized, the investments of the power grid and a power station are saved, the safety and energy utilization efficiency of the power grid are enhanced, the national power grid is balanced, natural distribution of virtual distributed energy storage power stations is realized, incomes are brought to assets and owners, shared investment of green traveling is realized, social resources are sufficientlyutilized, and popularization and application of green traffic are promoted.