Magnetic-domain-wall motion determined the coercivities of Nd-Fe-B sintered and ferrite magnets according to their alignment dependencies. The alignment dependences of coercivity and the angular dependences of the coercivity were correlated. The alignment dependence of the coercivity indicated that, in the aligned magnets, several grains formed a cluster of reversed magnetization at the coercivity. In the demagnetization process, the aligned magnets behaved as though they were magnets with low alignment because of cluster formation. The calculated angular dependence of the coercivity using the results of the alignment dependence of the coercivity agreed well with experimental data. From the recoil curve of these magnets, minor demagnetization occurred in a weaker demagnetization field than the coercivity. The magnetic measurements yielded a demagnetization process that started with a weak demagnetization; a cluster of reversed grains then formed, and the coercivity resulted from the cluster growth.