A transaction groups SQL statements into an all‑or‑nothing unit with ACID guarantees. PostgreSQL isolation levels are Read Committed (default), Repeatable Read, and Serializable, which control phenomena like non‑repeatable reads and phantoms.