Codes of ethics in nursing are fundamental guidelines that help nurses make decisions in complex situations. They serve as a moral compass, ensuring that the actions and decisions of nurses align with the core values of the profession. These codes are typically established by professional organizations such as the American Nurses Association (ANA) and provide a framework for ethical practice.