BACKGROUND: Although lumpectomy and mastectomy provide equivalent survival for patients with breast cancer, local recurrence after lumpectomy increases breast cancer mortality. Positive lumpectomy margins, which imply incomplete tumor removal, are the strongest predictor of local recurrence and are identified days after surgery, necessitating a second surgery. METHODS: In this prospective trial, we assessed margin status with or without pegulicianine fluorescence-guided surgery (pFGS) for stages 0 to 3 breast cancers. To prevent surgeons from performing smaller than standard lumpectomies in anticipation of pFGS assistance, patients were randomly assigned 10:1 to pFGS or control groups, thus randomization was not designed to provide a control group for evaluating device performance. In patients undergoing pFGS, additional pFGS-guided cavity margins were excised at sites of pegulicianine signal. We evaluated three coprimary end points: the percentage of patients for whom pFGS-guided margins contained cancer, sensitivity, and specificity. RESULTS: Overall, 406 patients received 1.0 mg/kg intravenous pegulicianine followed by lumpectomy. Among 392 patients randomly assigned, 316 had invasive cancers, and 76 had in situ cancers. In 27 of 357 patients undergoing pFGS, pFGS-guided margins removed tumor left behind after standard lumpectomy, 22 from cavity orientations deemed negative on standard margin evaluation. Second surgeries were avoided by pFGS in 9 of 62 patients with positive margins. On per-margin analysis, pFGS specificity was 85.2%, and sensitivity was 49.3%. Pegulicianine administration was stopped for adverse events in six patients. Two patients had grade 3 serious adverse events related to pegulicianine. CONCLUSIONS: The use of pFGS in breast cancer surgery met prespecified thresholds for removal of residual tumor and specificity but did not meet the prespecified threshold for sensitivity. (Funded by Lumicell, Inc. and the National Institutes of Health; Clinicaltrials.gov number, NCT03686215.)