The spread of the incidence of COVID-19 and measures related to the pandemic have a significant impact on the mental health of the population, namely on the cognitive, emotional and volitional spheres, and social communication. Among the high-risk groups are persons suffering from chronic infectious diseases, including HIV-infected patients. The aim of our work was to assess the impact of anxiety and depression in patients with secondary immunodeficiency caused by HIV on consent to vaccination against the corona virus disease during the COVID-19 pandemic in Ukraine. From December 2021 to April 2022, a survey of 67 patients with a diagnosis of HIV/AIDS in "Lviv Regional Information and Analytical Center of Medical Statistics" was conducted. The average age of the respondents was 35.67±1.25 years and ranged from 18 to 68 years. All patients were on antiretroviral therapy at the time of the survey. The GAD - 7 (General Anxiety Disorder - 7) questionnaire was used to assess the level of anxiety, and the PHQ - 9 (Patient Health Questionnaire - 9) was used to diagnose the level of depression. The HIV Registry software was used for statistical processing of the results. During the survey, 52.2% of patients noted mild anxiety, 25.4% - moderate anxiety, 14.9% - severe anxiety, and 7.5% had panic level anxiety. As for the manifestations of depression, 53.7% of respondents denied signs of depression, 28.4% of patients complained of mild depression, 13.4% - moderate depression, and 4.5% of patients noted moderate-severe depression. In 3.0% of respondents, a combination of moderate-severe depression with panic level anxiety was found. Among patients with severe and panic level anxiety, 73.3% were aware of their HIV status within 3 years. And among patients with moderately severe and severe depression, this figure was 75%. Regarding the data on the incidence of SARS-COVID-19, in the group of patients with severe and panic level anxiety, the rate of laboratory-confirmed cases was 26.7%, and among patients with moderate-severe and severe depression - 25.0%. At the time of the survey, 34.3% of people refused to be vaccinated against SARS-CoV-2. Among patients with severe and panic level anxiety, 40% of respondents refused vaccination, and among patients with moderate-severe and severe depression - 50% of surveyed patients refused to be vaccinated. The mental state of the patient, namely, anxiety and depressive symptoms, can significantly affect the perception and awareness of information by patients regarding the need for preventive and therapeutic measures due to the SARS-COVID-19 pandemic, in particular, the provision of consent for vaccination, which should be taken into account by specialists in the field of health care health. Thus, when organizing the provision of medical care to HIV-infected patients, it is necessary to take into account changes in mental health as a result of the SARS-COVID-19 pandemic.