By condensation of 2-chloro-4-(2-fluorophenyl)-6-methylthieno[2,3-d]pyrimidine (I) with piperazine (II) in refluxing chloroform or ethanol.