Some agreements are unenforceable because they are are contrary to the interests of the public, such as agreements in restraint of marriage.
Certain agreements are simply harmful to society. They are against public policy. Agreements in restraint of marriage, trade, or legal proceedings are examples of such agreements. Sections 26, 27, and 28 of the Indian Contract Act expressly declare these agreements to be void. The basis for declaring agreements in restraint of marriage void is that marriage is a sacrament and that nothing, including contracts, should interfere with the institution of marriage. The idea behind this provision is to not take away an individual's personal right to marry someone of their choice.
To know more about unenforceable agreements here-
brainly.com/question/27882100
#SPJ4