We report the application of SWNTs as templates for forming covalent polymeric chains from C(60)O reacting inside SWNTs; the resulting peapod polymer topology is different from the bulk polymer in that it is linear and unbranched.