CSS can be applied to XML documents to control display, formatting, and presentation. This is commonly done by linking a stylesheet using the processing instruction. CSS styles XML elements by tag name, allowing XML data to be rendered visually in web browsers or other applications.