The present invention relates to a novel method of preparing copanlisib, copanlisib dihydrochloride, or hydrates of copanlisib dihydrochloride, to novel intermediate compounds, and to the use of said novel intermediate compounds for the preparation of said copanlisib, copanlisib dihydrochloride, or hydrates of copanlisib dihydrochloride. The present invention also relates to copanlisib dihydrochloride hydrates as compounds.本發明係關於製備科帕利普(copanlisib)、科帕利普二鹽酸鹽或科帕利普二鹽酸鹽之水合物之新穎方法、新穎中間體化合物及該等新穎中間體化合物用於製備該科帕利普、科帕利普二鹽酸鹽或科帕利普二鹽酸鹽之水合物之用途。本發明亦係關於科帕利普二鹽酸鹽水合物作為化合物。