The invention relates to a reinforcing rib section for a polyurethane composite material energy-saving door frame or door sash frame or window frame or window sash frame, which is made from polyurethane resin and glass fiber, and a molding method. The reinforcing rib section comprises glass fibers, wherein a reinforcing rib section molding framework for a door frame/sash or a window frame/sash consists of a plurality of bundles of densely covered glass fibers; and polyurethane resin is compounded with the inner and outer surfaces of the reinforcing rib section molding framework for the door frame/sash or the window frame/sash. The reinforcing rib section has the advantages of light weight, high intensity, energy conservation, heat preservation, heat insulation, health, environmental friendliness, remarkable energy-saving effect, corrosion resistance, ageing resistance, long service life, high size stability, high weather resistance, high high-temperature resistance, higher low-temperature resistance, good insulating property, high damping performance and rich color; a polyurethane composite material has high hardness; and the reinforcing rib section can be painted with various paints to obtain sections of various colors so as to adapt to different styles and grades.