An illegal contract will never be applied if it is executed, but if it is carried out in spite of a status or rule of the forgotten policy that prohibits it, facilitation is often granted not only by terminating the agreement, but also by ordering the repayment of the money paid under that law. On the same principle, an agreement on the sale of goods in the Belack market can be obtained for dirty money in court.  In section 23 cases, it is necessary to examine or verify whether the section declares the agreement illegal on the basis of property or consideration. The three points mentioned above, i.e. (i) the consideration of the agreement, (ii) the purpose of the agreement and (iii) the agreement must also be taken into account, and the three principles that flow from the section – (i) an agreement or contract is cancelled if its purpose is to initiate an illegal action; (ii) if a law expressly or implicitly prohibits it and (iii) if its execution is not possible without disobedience to a law. The term “prohibited by law” is not synonymous with “empty” and therefore it is not necessary that anything that is null and void be prohibited by law.  The law prohibits a law that is prohibited by the Indian penal code or by regulations, regulations and special ordinances.  The term “public policy” means and encompasses a wide range of topics such as trade with enemies in times of war, suffocating pursuits, mastery and maintenance, and various other topics that include certain things recognized.  An order of residence obtained other than on the charge of illegality of the purpose of the contract was found to be non-illegal if the construction does not find a buyer in contentious circumstances, but the contractor cannot dispose of it according to the doctrine of illegality or impossibility.
 The general rule is that the facts of illegality must be invoked and, if one of the parties challenges an agreement as unenforceable. B, for example, as a contrary 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. In this section, the words “void,” “object” and “consideration” can be read. There may not be a void object as such, but it can be considered a null contract with an illegal object that is cancelled.  Similarly, there can be no “non-counterpart” as such, but it can be considered a null contract with an illegal consideration that can be cancelled.  This section deals with the illegality of the two – the purpose of the contract and the consideration.  For example: If money has been lent for the marriage of the minor, the consideration for the contract is credit and the object is marriage, the Madras High Court found that the purpose refutes the provisions of the Child Marriage Restraint Act.
The word “object” in section 23 is not used in the same sense as “reflection,” but has been used as a distinctive agent of respect and means “purpose” or “design.”  The section invalidates an agreement whose objections or considerations are unlawful. These are three points, namely (1) the counterparty of the agreement, (2) the purpose of the agreement and (3) the agreement. In the event of a cancellation of a contract, any part of that contract, including the employment clauses it contains, is deemed invalid. One of the most important elements of a valid contract is that the parties must enter into a contract for a legitimate good. An agreement whose purpose is contrary to the law of the country may be either illegal or simply non-aeig, depending on the provisions of the law against which it opposes.  Section 23 of the Indian Contract Act, 1872 makes certain considerations and objects considered illegal.