The lyotropic liquid-crystalline behavior of polymerizable amphiphiles has been tuned by using tailor-made ionic liquids as solvents so as to induce the formation of bicontinuous cubic assemblies having 3D interconnected nanochannels. The fixation of the amphiphilic assemblies has been successfully achieved by in situ photopolymerization.