In recent years, the service life of building materials has become the focus of attention. Among them, the service life of concrete and steel bars is particularly affected by the corrosion of external ions (such as Cl−) in the environment. To solve this problem, a new type of composite nanocolloid was prepared through a controllable preparation method. The composite nanocolloid is prepared from aluminum chloride sol and silica sol as raw materials. The prepared colloidal particles have a particle size distribution between 10.5 and 17.5 nm, exhibiting excellent stability and dispersibility. In order to verify the improvement effect of the composite nanocolloid on the properties of building materials, the influence of it on the porosity of concrete and the anti-corrosion performance of steel bars was experimentally studied. The results indicate that the moisture absorption and dehumidification speed of concrete treated with composite nano colloids is slower, and the pore size distribution is mainly concentrated in 100–1,000 nm, indicating that the colloids can effectively optimize the pore structure of concrete. In addition, the processed steel plate samples showed high AC impedance values and low corrosion current logarithmic values in electrochemical testing, indicating that composite nanocolloids have a significant protective effect on the corrosion of steel bars, which can effectively improve the performance of building materials and extend their service life.