Background: Human immunodeficiency virus (HIV) infection has become a chronic disease and attracted public attention globally. Population migration was considered hindering the control and management of HIV infection, but limited studies have explored how population mobility could influence the development of HIV-related complications and overall prognosis.Methods: We enrolled hospitalized HIV patients in this cross-sectional study between January 1, 2006, and December 31, 2016. We extracted demographic, hospitalization, and patient diagnosis data. Patients were divided into three groups according to the population type: (I) resident of Guangzhou City (local resident);(II) migrant outside of Guangzhou City but within Guangdong Province (migrant within the province); and(III) migrant outside of Guangdong Province (migrant outside the province). To represent the prognosis of HIV, in-hospital death was defined as the worst outcome, whereas vision-related events were considered moderate-to-severe complications. Logistic regression models were used to analyze factors influencing the prognosis of HIV.Results: Eight thousand and six hundred thirty-one inpatients (14,954 cases) were enrolled. The overall mortality was 7.9%, decreasing from 21.5% in 2006 to 3.8% in 2016. The prevalence of vision-related events was 14.4% between 2015 and 2016. Compared to local patients, migrant patients (within and outside the province) were younger, had significantly less access to health insurance, fewer hospitalization admissions, longer hospital stays, and a higher proportion of physical work (P<0.01). Furthermore, they had a higher prevalence of vision-related events (16.2% and 17.4% in migrant patients within the province and outside the province, respectively vs. 9.5%) and infectious diseases, but lower in-hospital mortality (5.9% and 7.0% vs. 12.3%) than local patients. Migrants correlated negatively with in-hospital death [odds ratio (OR) 95%