The 'useParams' hook is used to access URL parameters in a functional component. This allows you to retrieve dynamic segments of the URL and use them within your component.