A low-density aerogel derived from whey protein, a byproduct of the cheesemaking industry, has been developed to selectively adsorb gold from the remains of discarded electronics.