INTRODUCTION AND IMPORTANCE: Epstein-Barr virus (EBV) is a common virus infecting more than 90 % of the adult population, typically without symptoms. While most infections remain asymptomatic, EBV is associated with over 200,000 new cancer cases annually. It is linked to several malignancies, including leiomyosarcoma (LS) in immunocompromised patients, a rare occurrence with fewer than 100 new cases per year globally. This report highlights the case of an EBV-associated intracranial leiomyosarcoma in a 4-year-old immunodeficient child. CASE PRESENTATION: A 4-year-old girl with a history of primary immune deficiency and multiple infections presented with febrile dyspnea. Imaging revealed a right temporo-parietal brain mass, which increased in size over 50 days. Surgical excision was performed, and histological examination showed a tumor with smooth muscle cell characteristics. Immunohistochemical analysis was positive for vimentin and CD99, while EBV genome presence was confirmed by in situ hybridization. The final diagnosis was EBV-associated malignant smooth muscle tumor. The postoperative course was favorable, and chemotherapy was not indicated. CLINICAL DISCUSSION: Leiomyosarcoma is extremely rare in immunocompetent children but more common in immunocompromised individuals, where EBV infection plays a significant role in tumor development. Although EBV-related leiomyosarcomas occur more frequently in immunodeficient children, intracranial cases are exceptionally rare. These tumors are often challenging to diagnose due to their undifferentiated appearance. The detection of EBV DNA using in situ hybridization is crucial for confirming the diagnosis. While EBV-associated leiomyosarcomas generally respond well to therapy, the optimal treatment remains unclear, with surgery and radiotherapy being the primary approaches. CONCLUSION: EBV-associated smooth muscle tumors are rare but increasing in incidence among immunocompromised patients. Early recognition of EBV infection in smooth muscle tumors, especially in children with immune deficiencies, is vital for diagnosis. Histological and molecular examination, including in situ hybridization, is essential to confirm the presence of EBV. Treatment typically involves complete surgical excision, with chemotherapy's role still uncertain.