The development of facile and efficient polymerizations toward functional polymers with unique structures and attractive properties is of great academic and industrial significance. Here we develop a straightforward C–H-activated polyspiroannulation route to in situ generate photoresponsive spiro-polymers with complex structures. The palladium(II)-catalyzed stepwise polyspiroannulations of free naphthols and internal diynes proceed efficiently in dimethylsulfoxide at 120 °C without the constraint of apparent stoichiometric balance in monomers. A series of functional polymers with multisubstituted spiro-segments and absolute molecular weights of up to 39,000 are produced in high yields (up to 99%). The obtained spiro-polymers can be readily fabricated into different well-resolved fluorescent photopatterns with both turn-off and turn-on modes based on their photoinduced fluorescence change. Taking advantage of their photoresponsive refractive index, we successfully apply the polymer thin films in integrated silicon photonics techniques and achieve the permanent modification of resonance wavelengths of microring resonators by UV irradiation.