Sri Lanka has successfully met the challenge of controlling both lymphatic filariasis (LF) and soil-transmitted helminthiases (STH) as public health problems. The primary public health strategy for combatting both conditions has been preventive chemotherapy. The national programme for the elimination of LF implemented five annual rounds of mass chemotherapy in the endemic districts from 2002 to 2006 using a combination of diethylcarbamazine and albendazole. The overall microfilaria rate declined from 0.21% in 2001 before the mass chemotherapy, to 0.06% in 2016, at declaration of elimination of LF as a public health problem by the World Health Organization. Currently Sri Lanka is in the phase of post-validation surveillance. Achieving control of STH has been more difficult. Mass deworming programmes have been implemented for nearly a century, and national-level surveys reported prevalence rates declining from 6.9% in 2003 to 1% in 2017. However, neither of these infections has been completely eliminated. A situation analysis indicates continued transmission of both among high-risk communities. This paper explores the reasons for persistence of transmission of both LF and STH in residual pockets and the measures that are required to achieve long-term control, or perhaps even interrupt transmission in Sri Lanka. This article is part of the theme issue 'Challenges and opportunities in the fight against neglected tropical diseases: a decade from the London Declaration on NTDs'.