Background: This study investigated the quality of inpatient care provided to Afghan immigrants in Iran during the COVID-19 pandemic (February 2019 to March 2021). For this purpose, the services received by Afghan immigrants were compared with those received by Iranian citizens. Methods: Two emergency services (traumas with 8080 victims and 8,686 patients hospitalized with severe COVID-19 infection) were taken into consideration. The records of all patients, including the Afghan immigrants, in two referral hospitals in Kerman were reviewed, and the main variables were the length of hospitalization (LoH), intensive care unit (ICU) admission rate, and death rate. Quantile regression, multiple logistic regression, and Cox regression were used to analyze the data. Results: The median and interquartile range of LoH for Afghan and Iranian nationals admitted due to traumas were 3.0±4.0 and 2.0±4.0, respectively (P<0.01). Moreover, the chance of Afghan nationals being admitted to the ICU (38%, odds ratio=1.38; 95% confidence interval [CI]=1.12; 1.69) and the hazard of death (60%, hazard rate=1.60; 95% CI=1.03; 2.49) were higher compared to Iranian nationals, which is statistically significant. However, no significant differences were observed between the COVID-19 patients from the two nationalities in terms of the median LoH, the odds of being admitted to the ICU, and the hazard of death due to COVID-19. Conclusion: Afghan nationals admitted to the hospital due to traumas were more likely to be admitted to ICUs or die compared to Iranian citizens. It seems that Afghan patients who had traumas went to the hospitals with more serious injuries. There was no difference between Afghan and Iranian patients in terms of COVID-19 consequences. Following the findings of this study, it seems that justice in treatment has been fully established for Afghan patients in Iran.