Rollback will help us to maintain transactions for DML statements. Suppose we have written multiple lines of DML statements in a try block, If any error occurs during DML Operations, the operation will be rolled back to the most recent save point and the entire transaction will not be aborted.