A building material for doors and windows and a method of making the building material are disclosed. The building material includes, from inside to outside, a core, a piece of reinforced material, a panel, and a cover film, wherein a surface of the core is applied with an adhesive material. The piece of reinforced material includes a piece of carbon fiber fabric, wherein the adhesive material penetrates the pieces of carbon fiber fabric. The adhesive material fixes the panel and the core after it is dried, and makes the piece of carbon fiber fabric locate between the panel and the core. Whereby, the building material has significant improvement in the aspect of anti-bending because the piece of carbon fiber fabric has reinforcing functions such as pull resistance, shear resistance, and shock resistance.