A new type of ternary composite with a core–shell structure was easily assembled, which showed high UV stability and thermostability.