The RequestDispatcher interface in Java allows servlets to dispatch or forward requests to other resources on the server like HTML files, JSP pages, or other servlets. It provides two main methods - forward() to forward a request and include() to include the response of a resource in the current response. The getRequestDispatcher() method of the ServletRequest interface returns a RequestDispatcher object that can then be used to call the forward() or include() methods, passing the request and response objects. An example is provided of a login servlet that uses RequestDispatcher to forward successfully authenticated requests to a welcome servlet or include an error message on failed authentication.