In 2021, four patients who had received solid organ transplants in the USA developed encephalitis beginning 2-6 weeks after transplantation from a common organ donor. We describe an investigation into the cause of encephalitis in these patients. From Nov 7, 2021, to Feb 24, 2022, we conducted a public health investigation involving 15 agencies and medical centres in the USA. We tested various specimens (blood, cerebrospinal fluid, intraocular fluid, serum, and tissues) from the organ donor and recipients by serology, RT-PCR, immunohistochemistry, metagenomic next-generation sequencing, and host gene expression, and conducted a traceback of blood transfusions received by the organ donor. We identified one read from yellow fever virus in cerebrospinal fluid from the recipient of a kidney using metagenomic next-generation sequencing. Recent infection with yellow fever virus was confirmed in all four organ recipients by identification of yellow fever virus RNA consistent with the 17D vaccine strain in brain tissue from one recipient and seroconversion after transplantation in three recipients. Two patients recovered and two patients had no neurological recovery and died. 3 days before organ procurement, the organ donor received a blood transfusion from a donor who had received a yellow fever vaccine 6 days before blood donation. This investigation substantiates the use of metagenomic next-generation sequencing for the broad-based detection of rare or unexpected pathogens. Health-care workers providing vaccinations should inform patients of the need to defer blood donation for at least 2 weeks after receiving a yellow fever vaccine. Despite mitigation strategies and safety interventions, a low risk of transfusion-transmitted infections remains. US Centers for Disease Control and Prevention (CDC), the Biomedical Advanced Research and Development Authority, and the CDC Epidemiology and Laboratory Capacity Cooperative Agreement for Infectious Diseases.