[N:1]1[N:5]2[CH:6]=[CH:7][C:8](O)=[N:9][C:4]2=[CH:3][CH:2]=1.O=P(Cl)(Cl)[Cl:13]>>[Cl:13][C:8]1[CH:7]=[CH:6][N:5]2[N:1]=[CH:2][CH:3]=[C:4]2[N:9]=1A mixture of pyrazolo[1,5-a]pyrimidin-5-ol (17.0 g, 126 mmol) in POCl3 (100 mL) was heated at reflux for 3 hours. After cooling, the reaction was concentrated under vacuum. To the residue was added dichloromethane. The organic phase was carefully washed with saturated aqueous NaHCO3 solution, dried and concentrated. The crude product was purified by passing through a short silica gel pad eluting with 50% EtOAc in hexane to give 5-chloropyrazolo[1,5-a]pyrimidine (13.1 g, 68%).