The invention relates to a hollow tube flange composite beam provided with internal and external stiffening ribs. A web is provided between an upper flange and a lower flange, an I-shaped beam is thus formed, the external stiffening ribs are arranged on the web perpendicularly, a top plate is arranged on the top of the upper flange, the upper flange is arranged as a hollow tube or both the upper flange and the lower flange are arranged as hollow tubes, the internal stiffening ribs are arranged in the hollow tubes or the hollow tubes are filled with a foaming steel material, the internal stiffening ribs and the external stiffening ribs are positioned on the same cross section, and the upper flange and the top plate are connected by shear connectors. The local buckling problem of the upper flange can be effectively controlled by the internal and external stiffening ribs, the construction process is simplified, security and stability at the stages of structure construction and use are guaranteed, the advantages of materials of the steel-concrete composite structure are given full play, the construction period is short, the dead-weight of the structure is small, the building height is small, the material properties of steel and concrete can be fully embodied, and the hollow tube flange composite beam provided with the internal and external stiffening ribs has better application prospects when compared with traditional I-shaped composite beams.