The invention provides a rainwater pipe gallery with a rainwater and sewage diversion function, and belongs to the technical field of urban rainwater pipe galleries. The rainwater pipe gallery mainly comprises rainwater cabins, a water storage cabin and a sewage cabin. The rainwater cabins are symmetrically distributed along the axis of the water storage cabin, the sewage cabin is located below the water storage cabin and the rainwater cabins, and the rainwater cabins are connected with the pavement through rainwater cabin inspection wells. According to the rainwater pipe gallery, collection, regulation, storage and reasonable utilization of rainwater are facilitated, the pressure of sewage plants in a sponge city is relieved, the structural design is reasonable, the rainwater cabins and the water storage cabin are arranged in parallel, the burial depth is reduced, the functions of seepage, stagnation, storage, purification, use and drainage in the sponge city are achieved, the practicability is high, and the pipe gallery is easy to popularize and use; and meanwhile, the sewer and the inspection well are connected into the pipe gallery in a fishbone shape, so that many problems caused by too many access ports are avoided, and important significance is achieved for solving the problem that rain and sewage enter the gallery.