A contract refers to an agreement between two parties to create a legally-enforceable obligation to perform, or refrain from performing, a certain task. It can relate to almost any kind of transaction, including a sale, service, transfer of property ownership, or a combination of different kinds of transactions.