Network security focuses on protecting computer networks and their components from unauthorized access, cyberattacks, and data breaches. It employs technologies like firewalls, encryption, and intrusion detection systems to ensure the confidentiality, integrity, and availability of information within a network.