Accounts payable are expenses that are not paid yet. Therefore, in the balance sheet, they will appear as liabilities.
For example if you have an $100 electricity bill unpaid at the year end, you will have a debit in the expenses for $100 and a credit in the accounts payable (a liability) for $100