The virtual DOM is a lightweight representation of the actual DOM. React uses it to speed up the rendering of UI components.