We analyze how the team formation process influences the ability composition and performance of teams, showing how self-selection and random assignment affect team performance for different tasks in two natural field experiments. We identify the collaboration intensity of the task as the key...