In this paper, the fabrication of carbon nanotubes field effect transistors by chemical self-assembly of semiconducting single walled carbon nanotubes (s-SWNTs) on prepatterned substrates is demonstrated. Polyfluorenes derivatives have been demonstrated to be effective in selecting s-SWNTs from raw mixtures. In this work the authors functionalized the polymer with side chains containing thiols, to obtain chemical self-assembly of the selected s-SWNTs on substrates with prepatterned gold electrodes. The authors show that the full side functionalization of the conjugated polymer with thiol groups partially disrupts the s-SWNTs selection, with the presence of metallic tubes in the dispersion. However, the authors determine that the selectivity can be recovered either by tuning the number of thiol groups in the polymer, or by modulating the polymer/SWNTs proportions. As demonstrated by optical and electrical measurements, the polymer containing 2.5% of thiol groups gives the best s-SWNT purity. Field-effect transistors with various channel lengths, using networks of SWNTs and individual tubes, are fabricated by direct chemical self-assembly of the SWNTs/thiolated-polyfluorenes on substrates with lithographically defined electrodes. The network devices show superior performance (mobility up to 24 cm2 V−1 s−1), while SWNTs devices based on individual tubes show an unprecedented (100%) yield for working devices. Importantly, the SWNTs assembled by mean of the thiol groups are stably anchored to the substrate and are resistant to external perturbation as sonication in organic solvents.