HR must ensure that the organization complies with all legal requirements and ethical standards. This includes implementing policies on non-discrimination, harassment, and data privacy. Upholding compliance and ethics protects the organization from legal risks and enhances its reputation.