XP rules, or X-bar theory, are syntactic principles that describe the structure of phrases in a sentence, illustrating how constituents combine to form larger units called XPs (Extended Projections). These rules help linguists understand the hierarchical organization of language, showing how different elements like heads and complements come together to create meaning within sentences.