Infrastructure as Code (IaC) is the management of infrastructure (networks, virtual machines, load balancers, etc.) using machine-readable configuration files. Instead of manually configuring hardware and software, IaC allows developers to write and execute scripts that automate the setup and maintenance of infrastructure. Tools like Terraform, CloudFormation, and Ansible facilitate IaC by providing frameworks for defining and provisioning infrastructure in a consistent and repeatable manner. IaC ensures that infrastructure changes are versioned, tested, and deployed just like application code, leading to more reliable and scalable environments. This practice enhances agility, reduces the risk of configuration drift, and improves disaster recovery by enabling infrastructure to be easily replicated.