In this paper, two types of solid phase 2D and 3D XBOFs were selectively constructed from identical building blocks of tetraphenylmethane tetrapyridine derivative and 1,4-diiodotetrafluorobenzene by changing the crystallization solvent. This 3D XBOF is a novel hybrid supramolecular organic framework with the synergistic control of hydrogen and halogen bonds.