Distributed transactions allow operations that update data across multiple computer systems to be treated as a single transaction. There are several key properties transactions must have including being atomic, consistent, isolated, and durable (ACID). To handle failures while preserving transaction integrity, a two-phase commit protocol is used where transaction managers coordinate and ensure all subtransactions commit or abort together.