Poly(2,4-hexadiyne-1,6-diol)(poly(HDiD)) was coated on the outer walls of carbon nanotubes (CNTs) with the aid of supercritical CO(2), resulting in poly(HDiD)/CNT nanocomposites, which possess optical properties originated from poly(HDiD).