Nonalcoholic fatty liver disease (NAFLD) is associated with obesity and increased risk of cancer. The impacts of bariatric surgery on cancer risk in NAFLD patients are unknown. We investigated the effect of bariatric surgery on cancer risk in patients with NAFLD and severe obesity using the Marketscan database.