The critical mineral gallium is vital to the U.S. military’s radar and missile seekers. Now researchers are figuring out how to recover it from a pile of industrial waste