A database transaction is an execution of many operations (insert, update, or delete) as a single unit, taking the database from a consistent state to a consistent one. If one operation fails, all the previous operations are canceled.
The properties of a transaction are Atomicity, Consistency, Isolation, and Durability (ACID)