LEGALITY OF THE OBJECT AND TAKEN INTO ACCOUNT 1. The legality of the purpose and consideration is one of the essential elements of the contract in force under section 10 of the Contracts Act,1872 . Section 10 mentions that legitimate consideration and legal purposes are, as mentioned, the soul of a legitimate contract. Section 23 of the Act mentions three essential facts, for example. B public order, which are the recklessness of the facts, and if one of the parties challenges an agreement as unenforceable, for example. B as opposed to public policy, it is for him to expose and prove the particular circumstances that invalidate the contract.  This part of the Contracts Act speaks of an inconclusive agreement, but it must be remembered that there is a very small distinction between illegal and non-contractual contracts. 1. Prohibited by law If an act is prohibited by law, an agreement for the execution of that act is illegal and unenforceable. It includes not only the agreement for the action of the criminal nature, which is prohibited by the Indian penal code or by other laws is also invalid . Illustration: If there is an agreement between A and B to shoot C or murder him, this act is prohibited by law and the contract between A-B is unenforceable. A-B has agreed to make a defective product of low quality available to the consumer and the agreed sharing of the profits made is illegal and unenforceable. Case: Nutan Kumar v/s 2.
An additional district judge, Banda  any agreement between the tenant and the landlord without attribution or dismissal by the court is null and for none. If, during the war, the government issues a communication prohibiting the purchase of goods, if there is an infringement, it does not incur any liability between the parties. In this case, a distinction has been made between nullity and illegal contracts, if the contract is only inconclusive, then the security contract is not concerned, but it is illegal, then the guarantee is also null and forth in the contract. 2.Defeating the provisions of a law If the legality of the object is prohibited by law: the law is bound means for the moment the law in force in India, and therefore Hindu and Mohammaden also includes laws and principles of unwritten law.  A mere figure is the death of unlicensed spirits, and the sale was considered unsted and the price irrevocably.  If an agreement whose consideration or purpose is considered immoral by the court is unlawful and, in section 23 of the act, it is annulled and may be considered non-sharp. If a loan that the planter grants to a married woman to marry him after the divorce, to obstruct the purpose of the loan, is immoral and the same cannot be imposed by him. If the act is not prohibited, the actual performance of the contract cannot be refused  6.