A three-dimensional hydrogen-bonded framework in 2-amino-4,6-bis[N-methyl-N-(4-methylphenyl)amino]pyrimidine-5-carbaldehyde and hydrogen-bonded sheets in 2-amino-4-(indolin-1-yl)-6-methoxypyrimidine-5-carbaldehyde.