DNS plays a crucial role in website accessibility by providing the mapping between domain names and IP addresses. When a user types a URL into their web browser, DNS resolves the domain name to the corresponding IP address, enabling the browser to establish a connection with the correct web server and retrieve the website's content.