Vagrant and Chef can be used to automate development environments. Vagrant allows setting up projects in minutes and sharing environments with others. It uses virtualization software like VirtualBox along with configuration tools like Chef. Chef manages configurations through cookbooks containing recipes, resources, and templates. Vagrant boxes provide base images that can be provisioned using Chef recipes to install software and configure services. This allows consistently provisioning environments for development, testing, and production.