Phase diversity (PD) is a kind of wavefront sensing technology based on image collecting and post-processing. We apply the PD technology to align an off-axis three-mirror reflecting anastigmatic system precisely. It can be concluded that the wavefront error obtained by PD agrees well with the interf