Objective: The study was conducted to investigate the impact of unrealistic optimism on the risk of contamination at home confinement and its association with certain social variables.Methods: This survey study was conducted to describe the level of unrealistic optimism and its association with some social variables. The participants (n = 558, 60.6% females and 39.4 males) subjectively evaluated the risk of their coronavirus infection in the period 1-15 May 2020, for this purpose a questionnaire was adopted and administered to a sample of 558 citizens. Results: the results showed that 69.2% of the participants confirmed their respect always, and 38.7% confirmed that they rarely wear the mask, while 24% of the sample confirmed that they only sometimes wear the mask when they leave the house, including 50.5% of the sample confirmed that people infected with the coronavirus suffer from social stigmatization. It is found that 54.8% of the respondents had an average level of unrealistic optimism, where the mean of participants was (36, 17 ± 5, 97). The study also revealed that there is an association between the levels of unrealistic optimism and respect the home confinement (P = 0.001); whereas, the results showed that there is no association between the levels of unrealistic optimism and wearing the mask (P = 0.183). The study discovered there is significantly a negative association (B = -, 119, P = 0.005) between unrealistic optimism and the age of Algerian citizens during the home confinement of coronavirus. Otherwise, while the results did not show any statistically significant differences in unrealistic optimism between groups of gender among Algerian citizens during the home confinement of coronavirus (P = 0, 0835).Conclusions: In effect, unrealistic optimism is linked to avoiding risky behaviors that threaten human life as it is the case with the coronavirus. Therefore, it is important to reduce the levels of unrealistic optimism of individuals with beliefs and objective information to avoid dangerous behavior during and after the confinement period.