The Er-containing polymer is synthesized by free-radical polymerization. Based on the copolymer, metal-cladding directly defined waveguide technique is proposed. The technique is advantageous to realize the multi-functional integrated circuits.