A general ledger is used in accounting to record all of a business's transactions. Transactional data is categorized in a general ledger into assets, liabilities, income, costs, and owner's equity. The accountant prepares the trial balance once each sub-ledger has been closed.