Relative locators in Selenium 4 allow you to find elements based on their spatial relationships to other elements on the page. For example, you can find an element to the right of another element or directly above it, using the bounding box coordinates and DOM structure.