A trial balance is a list of all the accounts in a company's general ledger. It is used to check the accuracy of the accounts and to prepare financial statements.