Automation plays a crucial role in DevOps by eliminating manual, repetitive tasks, reducing human errors, and ensuring consistent and reliable software deployments. It enables the efficient provisioning of infrastructure, deployment of applications, and monitoring of systems.