The coercivity mechanism of the precipitation-hardened Sm(Co,Fe,Cu,Zr)z magnets at different temperature have been investigated by micromagnetic calculations. It was found that the coercivity mechanism varies with the temperature. The magnetization reversal is mainly controlled by domain-wall pinning when the temperature T is lower than 800 K, while it is dominated by coherent rotation at higher temperature. The quantitative analysis shows that the reduced coercivity is linearly related to the difference of domain-wall energy between 1:5 and 2:17 phases at T≤800 K, while it is mainly determined by the ratio of exchange constant between the two phases at T≫800 K. The temperature dependence of coercivity Hc(T) is the competitive result of the microstructure parameter αex(T) and the anisotropy field. The anomalous Hc(T) near the Curie temperature of 1:5 phase is caused by the fast drop of intergrain exchange coupling and thus the fast increase of αex(T). The micromagnetic calculations show that the anomalous Hc(T) also can be obtained in the nanocomposite-type SmCo5/Sm2Co17 with an appropriate microstructure.