A new method, molecule wire polymer, was developed for the determination of cyanide based on the competitive reaction. The fluorescence of the molecule wire polymer is quenched due to ion-association with Pd 2+ and restored when cyanide was added into the system. The linear detection range is 5×10 -6—2×10 -4 mol/L and the detection limit is 1×10 -7 mol/L for cyanide under optimal conditions. The possible mechanism of the method was investigated by using absorption spectra. This approach provides a potential useful method for anion detection with a high sensitivity and selectivity.