A retainer is a type of contract that a company or individual uses to keep a service provider available for work on an as-needed basis. The service provider is typically paid an upfront fee for the retainer contract, and then an hourly rate for any work that is performed under the contract.