for (Id key : Map.keySet()) { // The "key" variable is also available inside the loop List<String> list = Map.get(key); // logic }