is a formal grammar structure in Japanese used to convey that something is ‘in spite of (A)’, or ‘despite (A)’. This pattern is a combination of に, も, the う-Verb 拘（かか）わる ‘to fixate on’, or ‘to stick to’, and the literary auxiliary verb ず, which connects with verbs in the same way, and carries the same meaning as ない.
This structure is most frequently seen connected to verbs, い-Adjectives and nouns in their standard forms. In most cases, this pattern will appear without kanji.
Despite working hard every day, Hamasaki-san was fired by the company.
Despite him being in the wrong, he tried to make me apologize.
Despite Tanaka-san being kind and helpful, he is feared and avoided by those who do not know him well because of his scary appearance.
Despite being late at night, my boss blew up my phone, so I am thinking of reporting it to the labor standards inspection office.
Literally, this phrase can be thought of as expressing ‘without being affected by (A), (B)’, or ‘without fixating on (A), (B)’. However, it is almost always used in exactly the same way as のに ‘despite’.
Caution - It is important not to get にも拘（かか）わらず
mixed up with に関（かか）わらず. The former expresses ‘despite’, while the latter tends to be used more often for ‘no matter if’.
Despite knowing that we were going to have guests over, my son did not clean his room so I scolded him.
Please keep your room clean no matter if guests are coming or not.