Shadow DOM is a part of the DOM tree that’s isolated from the rest of the document. It’s still attached to the elements of the DOM but separated from its own children. This can help with applying CSS styles partially, for example, or avoiding any accidental restyling.