A novel infrared laser dye absorbing at 1270 nm was synthesized. The properties of switching and mode-locking for different laser were investigated. It can Q-switch 1064 nm and 1079 nm lasers satisfactorily with tetrachloroethylene and PMMA film. The pulsewidths are 4~7 ns. It's DMSO solution showes excallent ability in mode-locking 1079 nm and 1340 nm laser. The pulse-widths are 30~50 ps.