Protecting public interests refers to the legal principle aimed at safeguarding the well-being and welfare of society as a whole, often by prohibiting certain contracts or agreements that may harm individuals or the community. This principle is crucial in ensuring that legal agreements do not facilitate illegal activities, discrimination, or any actions that could negatively impact societal norms and values. By invalidating such agreements, the law helps maintain a balance between private freedoms and collective safety.