A code of ethics is a set of principles and guidelines that a business adopts to ensure its employees and management conduct business affairs with integrity and responsibility. It serves as a framework for ethical decision-making within the organization.