A composition and a polymer are provided. The composition includes the polymer and a melamine derivative. The polymer has a formula ofR is hydrogen, halide, alkyl group, alkoxyl group, haloalkyl group or nitro group. n is 1-5 of integer. x+y+z=1, x>0, y≧0, z≧0. The melamine derivative includesR1 is hydrogen, CqH2q+1, orm and q independently is 1-10 of integer. R2, R3 and R4 independently is hydrogen, halide, or C1-C54 alkyl group.