Infrastructure as Code (IaC) is a modern DevOps practice where infrastructure setup is automated using code, rather than manual configuration. Instead of physically provisioning servers or using graphical interfaces, developers write scripts to define servers, networks, databases, and services.IaC enables faster deployments, consistency, and repeatability. By treating infrastructure the same way we treat application code, it becomes versionable, testable, and reproducible.