Policy as code refers to the practice of defining authorization rules in version-controlled, machine-readable formats like Polar or Rego. This approach enables teams to manage and test policies alongside application code, improving reliability and auditability. Policy as code is a foundational principle for modern infrastructure and access control systems.