Enhanced sampling molecular dynamics (MD) simulations have been extensively used in the phase transition study of simple crystalline materials, such as aluminum, silica, and ice. However, MD simulation of the crystallization process for complex crystalline materials still faces a formidable challenge due to their multicomponent induced multiphase problem. Here, we realize the ab initio accuracy MD crystallization simulations of complex ceramics by using anisotropic collective variables (CVs) and machine learning (ML) potential. The anisotropic X-ray diffraction intensity CVs provide precise identification of complex crystal structures with detailed crystallography information, while the ML potential makes it feasible to further perform enhanced sampling simulations with ab initio accuracy. We verify the universality and accuracy of this method through complex ceramics with three kinds of representative structures, i.e., Ti3SiC2 for the MAX structure, zircon for the mineral structure, and lead zirconate titanate for the perovskite structure. It demonstrates exceptional efficiency and ab initio quality in achieving crystallization and generating free energy surfaces of all these ceramics, facilitating the analysis and design of complex crystalline materials.