Legislation affects nursing practice in numerous ways. For example, laws governing the scope of practice define what procedures and tasks nurses are allowed to perform. Regulations on staffing ratios ensure that there are enough nurses to meet patient needs, reducing workloads and enhancing care quality. Additionally, workplace safety laws protect nurses from hazards such as workplace violence and infectious diseases.