The T-cell antigen receptor (TCR) exists in monomeric and nanoclustered forms independently of antigen binding. Although the clustering is involved in the regulation of T-cell sensitivity, it is unknown how the TCR nanoclusters form. We show that cholesterol is required for TCR nanoclustering in T cells and that this clustering enhances the avidity but not the affinity of the TCR-antigen interaction. Investigating the mechanism of the nanoclustering, we found that radioactive photocholesterol specifically binds to the TCRβ chain in vivo. In order to reduce the complexity of cellular membranes, we used a synthetic biology approach and reconstituted the TCR in liposomes of defined lipid composition. Both cholesterol and sphingomyelin were required for the formation of TCR dimers in phosphatidylcholine-containing large unilamellar vesicles. Further, the TCR was localized in the liquid disordered phase in giant unilamellar vesicles. We propose a model in which cholesterol and sphingomyelin binding to the TCRβ chain causes TCR dimerization. The lipid-induced TCR nanoclustering enhances the avidity to antigen and thus might be involved in enhanced sensitivity of memory compared with naive T cells. Our work contributes to the understanding of the function of specific nonannular lipid-membrane protein interactions.