Choline chloride–zinc chloride ionic liquid has been used as a green template to synthesis highly crystalline mesoporou anatase titania.