Raw sockets allow direct access to network protocols like ICMP and IGMP without using TCP or UDP. They enable implementing new IPv4 protocols, controlling packet headers, and building custom packets. However, raw sockets lose reliability guarantees and require handling network details like packet fragmentation manually. They also require root access on most systems.