BackgroundMass drug administration (MDA) has the potential to interrupt malaria transmission and has been suggested as a tool for malaria elimination in low-endemic settings. This study aimed to determine the effectiveness and safety of two rounds of MDA in Zanzibar, a pre-elimination setting.MethodsA cluster randomised controlled trial was conducted in 16 areas considered as malaria hotspots, with an annual parasite index of > 0.8%. The areas were randomised to eight intervention and eight control clusters. The intervention included two rounds of MDA with dihydroartemisinin-piperaquine and single low-dose primaquine 4 weeks apart in May–June 2016. Primary and secondary outcomes were cumulative confirmed malaria case incidences 6 months post-MDA and parasite prevalences determined by PCR 3 months post-MDA. Additional outcomes included intervention coverage, treatment adherence, occurrence of adverse events, and cumulative incidences 3, 12, and 16 months post-MDA.ResultsIntervention coverage was 91.0% (9959/10944) and 87.7% (9355/10666) in the first and second rounds, respectively; self-reported adherence was 82.0% (881/1136) and 93.7% (985/1196). Adverse events were reported in 11.6% (147/1268) and 3.2% (37/1143) of post-MDA survey respondents after both rounds respectively. No serious adverse event was reported. No difference in cumulative malaria case incidence was observed between the control and intervention arms 6 months post-MDA (4.2 and 3.9 per 1000 population; p = 0.94). Neither was there a difference in PCR-determined parasite prevalences 3 months post-MDA (1.4% and 1.7%; OR = 1.0, p = 0.94), although having received at least the first MDA was associated with reduced odds of malaria infection (aOR = 0.35; p = 0.02). Among confirmed malaria cases at health facilities, 26.0% and 26.3% reported recent travel outside Zanzibar in the intervention and control shehias (aOR ≥ 85; p ≤ 0.001).ConclusionsMDA was implemented with high coverage, adherence, and tolerability. Despite this, no significant impact on transmission was observed. The findings suggest that two rounds of MDA in a single year may not be sufficient for a sustained impact on transmission in a pre-elimination setting, especially when the MDA impact is restricted by imported malaria. Importantly, this study adds to the limited evidence for the use of MDA in low transmission settings in sub-Saharan Africa.Trial registrationClinicalTrials.gov, NCT02721186 (registration date: March 29, 2016)Electronic supplementary materialThe online version of this article (10.1186/s12916-018-1202-8) contains supplementary material, which is available to authorized users.