Thiamethoxam, a nicotinic pesticide used worldwide, can cause great harm to the environment and even to human health, and aptamers, known as chemical antibodies, have high affinity and specificity for the target, as well as great potential in detecting small molecules such as pesticides. In this paper, we report a highly sensitive biosensor system for thiamethoxam residue detection based on aptamer technology. After 15 rounds of screening with the pressurized GO-SELEX technology, we found that the aptamer libraries of the 5th and 9th rounds showed high affinity by the capture method. Four candidate aptamers were obtained by high-throughput sequencing and secondary structure prediction. Among them, the aptamer named Thi-5R-18 from the 5th round was demonstrated to possess the highest affinity by isothermal titration calorimetry, with a dissociation constant (Kd) of 4.935 × 10−5 M. The results of molecular docking showed that thiamethoxam and Thi-5R-18 were combined with bases G-15, A-19, and T-71 through hydrogen bonding and π–π interaction.Thi-5R-18 was used as a recognition element to construct a AuNPs colorimetric aptasensor, achieving an ultralow detection limit of 0.37 nM. More importantly, this colorimetric aptasensor can be used for quantitative detection of thiamethoxam on tea leaves, with a recovery of 96.94%~105.86%. This study provides a highly sensitive biosensor for detection of thiamethoxam residue.