Zwitterionic imidazolium-based ionic liquid as modifier for montmorillonite and hydrotalcite. Montmorillonite was successfully intercalated by the ionic liquid. Good dispersion of ZIL-modified hydrotalcite in epoxy network Better dispersion of ZIL-modified montmorillonite in epoxy networks