The invention relates to an anti-CMAS-corrosion ultrahigh-temperature-resistant long-service-life thermal barrier coating and a preparation method thereof. The thermal barrier coating is sequentially provided with a binding layer, a first ceramic layer and a second ceramic layer on a matrix from bottom to top, the binding layer is made of an MCrAlX alloy, M refers to Ni, or Co or a composition of Ni and Co, X refers to one of or a composition of two of Y, Hf, Si and Pt, the first ceramic layer is made of YSZ, and the second ceramic layer is rare earth zirconate with Sc2O3. The preparation method includes that an electron beam physical vapor deposition method or an atmosphere plasma spraying method are adopted. Sc2O3 is doped in a rare earth zirconate coating, so that heat conductivity of the coating can be further lowered, toughness of the coating is improved, anti-CMAS-corrosion capability of the coating is improved, thermal cycling life of the coating can be prolonged, and high-temperature stability of the coating under CMAS coupling action can be improved.