Infrastructure as a code is a software development methodology that allows the automatic management of software-defined infrastructure. This can be done through the use of automation tools and processes to manage the infrastructure, making it easier for developers to focus on their code instead of managing infrastructure.