The invention discloses a preparation method of a nucleic acid fluorescence probe compound AzosD for nuclear staining. The preparation method is characterized by comprising steps as follows: 6-amino-2-methylquinoline is dissolved in acetonitrile, N-bromosuccinimide is added, a reaction is performed, and an intermediate 1 is obtained; the intermediate 1 is dissolved in a water, ethanol and toluenemixed solution, 3-(N,N-dimethylamino)phenylboronic acid, tetrakis(triphenylphosphine)palladium and sodium carbonate are added, refluxing reaction is performed under nitrogen protection, and an intermediate 2 is obtained; the intermediate 2 is dissolved by hydrochloric acid, sodium nitrite is added to the solution under the condition of ice-water bath, pH of the solution is regulated to be neutralby a sodium hydroxide aqueous solution, and 3-methyl-11-(N,N-dimethylamino) cinnoline[3,4-e]quinoline, namely AzosD, is obtained by separation and purification. The compound is good in photobleachingresistant effect, high in biocompatibility, high in enzyme-resistant capacity and high in nuclear targeting, can be applied to specific staining of nucleuses of living cells, and has broad applicationprospect in the fields of long-term monitoring of nuclear morphometry and observation for nuclear morphology change in the cellular physiological process.