(3-Mercaptopropyl)trimethoxysilane was employed as a chain transfer for the polymerization of N-isopropylacrylamide (NIPAM) and N,N-dimethylacrylamide (DMAA) under UV irradiation to obtain the corresponding polymers having methoxysilyl end group. By the condensation reaction of such macrosilane coupling reagents under basic or acidic conditions, the grafted polysilsesquioxanes, which were soluble in usual organic solvents, were formed without gelation. The cocondensation of the macrosilane coupling reagents enabled the preparation of the grafted polysilsesquioxane, in which poly(NIPAM) and poly(DMAA) were introduced respectively into the polysilsesquioxane main chain. Such macrosilane coupling reagents and the grafted polysilsesquioxanes showed an amphiphilic property. Furthermore, those containing poly(NIPAM) showed reversible thermoresponsive aggregation in an aqueous solution. In the thermoresponsive phase separation measured by turbidity, no change of aggregation temperature caused by the presence of poly(DMAA) was observed.