The invention relates to a railway space integrated power generation system adopting wind energy and solar energy grid connection and a piezoelectric technology. The technical feature of the railway space integrated power generation system is that the system comprises a solar energy power generation module, a wind power generation module, a piezoelectric module and an electric energy control apparatus, wherein the solar energy power generation module is connected with solar battery panels which are mounted on the side surfaces of railway guard bars, railway slopes and the middle parts of rails separately; the wind power generation module is connected with small-sized wind-driven generators mounted at the top ends of the railway guard bars and a wind-driven generator set mounted on train guard bars separately; the piezoelectric module is connected with piezoelectric crystals mounted between the rails and rail bearings; and the electric energy control apparatus is connected with the solar energy power generation module, the wind power generation module, the piezoelectric module, a power load and a power grid to realize power supply of the power load, grid connection and compensation. By adoption of the railway space integrated power generation system, cleaning energy of solar energy, wind energy and the like can be provided for railway traction transportation, so that pollution caused by utilization of conventional coal power is reduced, and land utilization efficiency is improved.