The useParams hook is used to access URL parameters in a React Router component. It returns an object of key-value pairs of URL parameters.