The swift evolution of contemporary electronics products, such as flexible screens and wearable electronic devices, highlights the significance of flexible protective coatings, which combine superior mechanical and optical properties. Even though the recently developed polymer protective coatings can satisfy requirements for flexibility and transparency, their intrinsic nature often results in a hardness below 1 GPa, rendering them susceptible to scratches. On the other hand, traditional inorganic coatings, known for their high hardness and transparency, fall short of meeting flexibility requirements. In the present study, a SiNx/BN periodical nanolayered coatings (PNCs) structure has been tailored to achieve high mechanical durability, transparency, and flexibility. In SiNx/BN PNCs, the optical and mechanical properties of the single-layer SiNx film are crucial to the overall performance of the PNCs. Therefore, pulse direct current (DC) magnetron sputtering was optimized first to enhance the ionization efficiency of Si and N, thereby promoting their reaction and diminishing the presence of elemental silicon in SiNx. The effects of the pulse frequency and duty cycle on SiNx were evaluated. Additionally, the influence of the thickness ratio and modulation periods on the overall performance of the SiNx/BN PNCs was investigated. As a result, a SiNx/BN coating with sapphire-grade hardness, almost no optical absorption in the visible-near-infrared (vis-NIR) range, high wear resistance, and exceptional flexibility was demonstrated.