A liability should be recorded when a company has an obligation that will need to be paid in the future.
This can include things such as payments owed for goods or services received on credit, debt that needs to be repaid within a year, and dividends that have been declared but not yet paid.