# ROLLBACK

> For the complete documentation index, see [llms.txt](https://preview.materialize.com/materialize/40269/llms.txt).


`ROLLBACK` aborts the current [transaction](https://preview.materialize.com/materialize/40269/markdown-docs/sql/begin/index.md#details) and rolls back
all changes made by the transaction.

## Syntax

```mzsql
ROLLBACK;
```

## Details

Rolls back the current transaction, discarding all changes made by the transaction.

## See also

- [`BEGIN`](https://preview.materialize.com/materialize/40269/markdown-docs/sql/begin/index.md)
- [`COMMIT`](https://preview.materialize.com/materialize/40269/markdown-docs/sql/commit/index.md)
