The invention is related to a coating system for solar cells, based on using nanomaterials, that can protect the solar cells from dust leading to a longer lifetime, and a reduction in the cost of its cleaning. This coating system can be used as well as in window glass, car glass, or any glass surface to protect these glasses from accumulating dust.