To estimate the effect of a 3-year commitment to remain tobacco free on tobacco uptake among high school students in Sweden. The commitment is developed in the form of a contract between a child and a significant adult, constituting the core component of Tobacco-free Duo (T-Duo), a Swedish school-based tobacco prevention program. Secondary analysis of data from a cluster randomized controlled trial. Participants were 586 students in high schools assigned to the intervention arm of T-Duo. At inception, participants attended grade 7 (i.e., age 12–13). Only students who were tobacco naïve at baseline for the respective outcome and participated in all follow-ups were included. The exposure was defined as signing a 3-year contract with a significant adult, categorized as “stable contract” (3 years contract with the same contract partner), “unstable” (signed a contract sometime during follow-up but this was not sustained over time and/or with the same partner), and “no contract” at all during the intervention period. The primary outcome was having never tried cigarette smoking at the end of grade 9. Exposure and outcomes were self-reported in yearly questionnaires. Of 586 students, 321 (55%) held a stable contract, 204 (35%) an unstable contract, and 61 (10%) did not sign a contract at all. At the end of grade 9 (age 15–16), the relative risk (RR) to remain cigarette free was 1.11 (95% CI 1.00–1.22) (Number Needed to Treat = 10) among students in any type of contract compared to students that did not write a contract at all. The RRs for remaining tobacco free (secondary outcomes) ranged from 1.07 (0.98–1.16) for regular snus use to 1.16 (1.00–1.35) for any type of tobacco use. A commitment to remain tobacco free through a child–adult contract seems to exert a preventive effect on the uptake of tobacco use among Swedish adolescents over 3 school years. The current findings apply to a selected sample of both schools and students. Registration: Current Controlled Trials ISRCTN52858080 Date: January 4, 2019, retrospectively registered.