Background: Shanghai is an international city which has high proportion of entry travelers from all over the world. The HIV infection status of this population can reflect the global trend of HIV prevalence. Thus, a retrospective epidemic investigation was conducted to clarify the prevalence and characteristics of HIV infection among entry travelers who apply to residency in Shanghai. Methods: Totally 50830 entry travelers who applied to residency in Shanghai(2005-2016)were included. The HIV infection rate was confirmed based on the detection of HIV-1 antibody. Results: Among all the recruited entry travelers, 245 persons were determined HIV positive with infection rate of 0.48%. The detection rate of HIV in male was significantly higher than that in female (χ2=62.584, P<0.0001). Those aged 18-30 years, 31-40 years and >40years accounted for 34.3%, 39.6% and 26.1% of the infected population. There was no increase in trend of HIV prevalence rates among the sampling years (Cochran-Armitage Z=2.543, P=0.111). Proportions of individuals infected through homosexual transmission increased over the study period (Cochran-Armitage Z=5.41, P<0.001), while the proportion infected through heterosexual declined over time (Cochran-Armitage Z=3.38, P =0.001). Conclusion: The characteristics of HIV infection among foreign applicant to residency in Shanghai were clarified. The results would provide the necessary epidemiological data for monitoring the HIV epidemic among entry international travelers and contribute to the establishment of relevant policies and regulations for HIV control and prevention.