ometimes during the very same manufacturing process. 2-(2-Chloroethoxy)ethanol is a small molecule with two very different ends. One end carries chlorine. The other carries an alcohol. In between is a flexible ether linkage.
That makes it a convenient molecular connector. In established syntheses of quetiapine, the antipsychotic drug, a piperazine nitrogen attacks the carbon bearing chlorine. Chloride leaves. A new C-N bond forms.