A transaction is a fundamental unit of work in a database management system that is treated as a single, indivisible operation, ensuring data integrity and consistency. It follows the ACID properties: Atomicity, Consistency, Isolation, and Durability, which are essential for reliable database operations.