Materials scientists demonstrate an environmentally friendly solution to remove valuable cobalt and lithium metals from spent lithium-ion batteries. The metals and the eutectic solvent they use to extract them can then be recycled.