Shadow DOM refers to a method of combining multiple DOM trees into one hierarchy and keeping some of the DOM trees hidden as a separate entity from the main document DOM tree. This technique is particularly used in web components to encapsulate styles and markup structure from the rest of the web page. Think of it as a set of nested dolls; each smaller doll is contained within another, yet they are all part of a single whole.