This paper examines the role of law, in particular European Union law and its national implementation, in shaping the cybersecurity system. It defends the thesis that law is not merely an external constraint but functions as the basis and axis integrating the three pillars of security: technological, organisational and regulatory. The analysis covers the basic legal acts such as the NIS 2 Directive, the DORA Regulation and the CER Directive, as well as other regulations that influence the information security system, in order to verify their effects on cybersecurity requirements. The paper concludes with de lege lata and de lege ferenda proposals concerning competence standards, the coordination of reporting obligations, procedural safeguards in high-risk vendor proceedings, support for entities with limited resources, and the role of certification and education.