The environmentally friendly ionic liquid N-(2-hydroxyethyl)ammonium formate works as a reaction medium, reducing and templating agent in the mild microwave synthesis (5 min, 80 degrees C) of a macroporous silver framework from AgNO(3).