A two-dimensional porous framework SHU-1 could undergo.solvent-induced structural transformations to SHU-1a in methanol.and SHU-1b in water. SHU-1, SHU-1a and SHU-1b showed selective.adsorption towards malachite green.