A barium-catalyzed C–OH/P–H dehydrative cross-coupling protocol for the construction of C–P bonds was developed in an environmentally benign manner.