Section 26 of the Indian Contract Act, 1872 declares every agreement in restraint of marriage void as a matter of public policy. This applies whether the restraint is absolute (complete prohibition) or partial (restrictions like time, place, or manner). The law treats both equally to protect freedom to marry.