Unearned revenue is generated when a business supplies its services to a customer and the services are invoiced in advance.
For example, suppose a business provides maintenance services and invoices for annually in advance. At the time of invoicing the service has not been provided and none of the revenue has been earned, it therefore needs to be credited to the unearned revenue account.