Fused bicyclic pyrimidine compounds of formula (I): wherein R1, R3, R4, X1, X2, Y, Z, A, B, C, D, n, and the two bonds are defined herein. Also disclosed are a method for inhibiting Aurora kinase activity and a method for treating cancer with these compounds.