Document Type Definitions (DTDs) define the structure and rules for markup languages like XML, ensuring data consistency and integrity in documents.