A graphene membrane uses sunlight to separate lithium from magnesium-rich brine, achieving 28-fold enrichment without electricity or pumps.