SQLite uses a journal to prevent data loss when transactions go wrong. The rollback journal is one of two modes, the other being the write-ahead log. Without a journal, overwriting a page directly can corrupt the database if a crash occurs mid-write. The rollback journal ensures atomicity, isolation, and durability, which are three of the four ACID properties.
