The present invention is an agricultural cooling and heating system using renewable energy and hydrogen, the heat pump system 20 used for cooling and heating of a livestock house or a greenhouse or a low-temperature warehouse uses electricity produced by the photovoltaic device 10 as a power source, and , The heat pump system 20 includes a compressor 21 for compressing a refrigerant, a condenser 22 for condensing the refrigerant compressed in the compressor 21, and an expansion valve for decompressing the refrigerant condensed in the condenser 22 ( 25), an evaporator 23 that evaporates the refrigerant depressurized by the expansion valve 25, and a four-way valve 24 that switches the flow of the refrigerant during cooling/heating, and the geothermal use device 100 is further provided. Provided; The geothermal use device 100 is provided on the ground in a barn or in a greenhouse or a low-temperature warehouse, has a rectangular box shape with a space portion formed therein, and a through hole 111 through which air can be introduced is formed in the outer wall. 1 A first vertical housing 110 equipped with a blowing fan (F1) and installed through the bottom of the housing 110 and buried toward the ground so that the air blown from the first blowing fan (F1) flows. It is connected to the pipe 121 and the first vertical pipe 121 and is horizontally buried in the ground, and is connected to the horizontal pipe 130 and the horizontal pipe 130 provided with a heat exchange plate 132 on the outer surface, The second vertical pipe 122 protrudes while penetrating the ground of the barn or greenhouse or low-temperature warehouse, and is provided on the bottom of the evaporator 23 and the heated air coming up from the second vertical pipe 122 It includes a second blowing fan (F2) for blowing to the evaporator, and the surplus electricity utilization device 200 is further included; The surplus electricity utilization device 200 receives the surplus electricity generated from the p