5G technology provides improved connectivity, coverage, speed and capacity compared to 4G. However, it also faces new security challenges like eavesdropping, jamming, denial of service attacks. 5G introduces several technologies and architecture to enhance security, including software-defined networking, heterogeneous networks, device-to-device communication, and massive MIMO. It also defines security domains and functions within the 5G core to authenticate users and protect network domains and user data.