Objective: To investigate death and attrition in HIV-infected children under initial antiretroviral therapy (ART) and associated factors in Guangxi Zhuang autonomous region. Methods: This retrospective cohort study was conducted in HIV-infected children under initial ART in Guangxi from 2004 to 2019, data from ART information system of National comprehensive AIDS prevention and treatment information system. Cox proportional hazards models were used to assess factors associated with the death and attrition. Results: In 943 HIV-infected children, the overall mortality and attrition rates were 1.00/100 person-years and 0.77/100 person-years, respectively. The mortality and attrition rates within the first year of ART were 3.90/100 person-years and 1.67/100 person-years, respectively. The cumulative survival rate during the first, second, fifth and tenth year after ART was 96.14%, 95.80%, 93.68% and 91.54%, respectively. Multivariate Cox proportional hazards models results showed that being female (aHR=2.00, 95%CI: 1.17-3.40), CD4+T lymphocytes (CD4) counts before ART <200 cells/μl (aHR=2.79, 95%CI: 1.54-5.06), weight-for-age Z score before ART <-2 (aHR=2.38, 95%CI: 1.32-4.26), hemoglobin before ART <80 g/L (aHR=2.47, 95%CI: 1.24-4.92), initial ART with LPV/r (aHR=5.05, 95%CI: 1.15-22.12) were significantly associated with death; being female (aHR=2.23, 95%CI: 1.22-4.07) and initial ART with LPV/r (aHR=2.02, 95%CI: 1.07-3.79) were significantly associated with attrition. Conclusions: The effect of ART in HIV-infected children in Guangxi was better, but the mortality and attrition rates were high within the first year of treatment. It is necessary to strengthen the training in medical staff and health education in HIV-infected children and their parents in order to improve the treatment effect.