Purpose This study aims to understand the determinants of the relationship between tax authorities and taxpayers in the digital era and how this relationship impacts tax compliance behavior, especially in the context of emerging countries like Morocco. Design/methodology/approach A qualitative methodology was adopted, involving interviews with tax inspectors and auditors, certified accountants’ experts and tax consultants. Data analysis was conducted using IRAMUTEQ software. Findings The research highlights that the relationship's quality and the level of mutual trust between tax authorities and taxpayers are critical in determining tax compliance in the digital era. Central factors affecting this relationship encompass effective communication, simplification of tax procedures, clarity of tax laws and the digitization of tax services. Furthermore, the study emphasizes that these dynamics and determinants significantly influence the tax compliance behavior of taxpayers in Morocco, revealing intricate connections between relational aspects and compliance attitudes. Practical implications The findings suggest that fostering a mutually trusting relationship, through improved communication, simplification and digitization, can enhance taxpayer compliance. This is valuable for policymakers and tax authorities developing strategies to improve tax systems in emerging countries. Originality/value This study contributes to the sparse literature on the relationship between tax authorities and taxpayers in the and digital era, offering new insights into factors that influence tax compliance in the post COVID-19 crisis context. Its practical recommendations provide a foundation for developing strategies aimed at improving this relationship and, consequently, taxpayer compliance behavior in emerging countries.