A chemically and thermally stable metal-organic framework achieves exceptional separation of styrene from a complex mixture containing larger (ethylbenzene) and smaller (toluene and benzene) molecules.