Objective: To evaluate the effect of the distance between the place of residence and the specialized treatment service on the survival time of people living with HIV/Aids in Alagoas, Northeast Brazil. Methods: Data from the notification and mortality systems related to individuals aged 13 years or older diagnosed with the infection between 2007 and 2013 were used. The cases were observed for a period of follow-up until December 2017. For the analyses, the Pearson's χ2 test, Kaplan-Meier method, and Cox regression were adopted according to the outcome of the case, place of residence, distance to the health unit, population size of the municipality of residence, sex, skin color/ethnicity, and age. Results: Of the 2,732 analyzed cases, 760 individuals died of Aids-related causes. The average estimate of survival time for individuals residing in the capital was 98.6 months (95%CI 96.1–101). Among residents of inland cities, the estimate was 92.7 months (95%CI 89.3–96.1). There was a significant difference in curves throughout the period. The group residing in inland municipalities and those traveling a distance of >70 km had a higher average relative risk of death (RR=1.21, 95%CI 1.05–1.4 and RR=1.18, 95%CI 1.01–1.39, respectively). Conclusion: Living in or near the capital decreases the average relative risk of death. In order to increase the survival time of HIV/Aids patients in Alagoas, it is suggested to decentralize specialized health care, that is, to create regional centers to care for these people.