A transaction in MySQL is a sequence of database operations that are treated as a single logical unit. It follows the ACID (Atomicity, Consistency, Isolation, Durability) properties. Transactions allow multiple database operations to be executed together, ensuring data integrity and consistency. In case of any errors or failures, a transaction can be rolled back to its original state using the ROLLBACK command.