The purpose of the Domain Name System (DNS) is to map domain names to IP addresses, which allows users to access websites and other network resources using human-readable names instead of IP addresses.