This thesis aims to provide insight into how the EU has acted to uphold and protect democratic principles and institutions within the union, thereby addressing the knowledge gap on resistance to autocratization. Hungary and Poland have been selected as case studies due to their notable democratic backsliding. The thesis addresses the following research questions: How has the EU acted towards Hungary and Poland to protect democratic principles and institutions? Has the EU acted in the same way in these two cases? This study is relevant because it highlights how the EU can function as a counterforce to autocratization, particularly at a time when democracy is globally experiencing a regression phase. The research employs a mixed-methods design combining case studies with a comparative and theory-application approach. The materials include official EU documents, yearbooks from the European Consortium for Political Research, and year reports from Freedom House, with the normative power theory serving as the theoretical framework. The findings indicate that the EU has taken several measures to protect democratic principles and institutions in both Hungary and Poland. Despite these efforts, the EU's actions have had limited impact on the actors in these countries. The EU has employed a similar strategy in both cases, but with some adjustments tailored to each country's specific context. Overall, the EU's measures have not resulted in a more sustainable democratic development in Hungary and Poland.