The widespread use of automobiles has greatly increased energy demand and exhaust gas pollution. In order to save energy, reduce emissions and protect the environment, making lightweights automobiles is an effective measure. In this paper, carbon fiber composites and automobile B-pillars are briefly introduced, and then the mechanical properties and impact resistance of the DC590 steel B-pillars and carbon fiber composites B-pillars are simulated by the ABAQUS finite element software. The results show that the quality of compound B-pillars is reduced by 50.76 % under the same dimensions, and the mechanical property of unit mass is significantly better than that of metal B-pillars. In the course of a collision, the kinetic energy of the two B-pillars is converted into internal energy, but the total energy remains the same; the converted internal energy of the composite B-pillars is greater, the deformation is smaller and the maximum intrusion and intrusion speed is also smaller, indicating that the anti-collision performance of the composite B-pillars is excellent. In summary, the carbon fiber composites can not only reduce the quality of the B-pillars, but also improve their anti-collision performance..