The present disclosure relates to the preparation of a cannabidiol compound or a derivative thereof. The cannabidiol compound or derivatives thereof can be prepared by an acid-catalyzed reaction of a suitably selected and substituted di-halo-olivetol or derivative thereof with a suitably selected and substituted cyclic alkene to produce a dihalo-cannabidiol compound or derivative thereof. The dihalo-cannabidiol compound or derivative thereof can be produced in high yield, high stereospecificity, or both. It can then be converted under reducing conditions to a cannabidiol compound or derivatives thereof.