The invention relates to the technical field of new energy resources and discloses a solar street lamp with the function of a charging pile for the new energy resources. The solar street lamp comprises a base, the center of the top of the base is fixedly connected with a sleeve, the sleeve is internally fixedly connected with a lamp post, and the top of the lamp post is fixedly connected with a first supporting frame; and the top of the first supporting frame is provided with a cavity, the top of the cavity is fixedly connected with solar panels, the bottoms of the solar panels are fixedly connected with a second supporting frame, and the cavity is internally provided with a photoelectric converter. According to the solar street lamp with the function of the charging pile for the new energy resources, through the base, the sleeve, the first supporting frame, the cavity, the solar panels, the photoelectric converter, a storage battery, lampholders, lighting lamps and the lamp post, thephenomenon that traditional charging piles and street lamps are connected to the mains supply is changed, only the solar panels are used for absorbing light energy and converting the light energy intoelectric energy for power supply, energy sources can be saved, and the purpose of protecting the environment is achieved.