The synthesis of new [2]-and [3] rotaxanes through Sonogashira coupling has been accomplished in the aim to built oligo (phenyleneethynylene)(OPE) encircled by crown ethers. Optimization of the Sonogashira coupling for the formation of the [2] rotaxane (capping reaction) is presented and the best method has been applied for the synthesis of the longer [3] rotaxane.