We present a comparative study of the thermotropic and lyotropic phases of 5 surfactants with an aliphatic chain of 12 carbon atoms and a cyclic or acyclic sugar head with different linkages between the two moieties. These linkages can concern different chemical groups or different orientations between the head and the chain. The compounds included the α- and β-N dodecyl-D-maltosides, N-dodecylamino-1-deoxylactitol, N-dodecyl lactobionamide and N-acetyl N-dodecyl lactosylamine. The influence of the polar head (with closed- and opened-type sugars) and the linkage with the hydrocarbon chain on the phases obtained by the heating of the anhydrous compounds and after addition of water was studied by X-ray diffraction and optical microscopy. In the anhydrous state, the surfactants were either crystalline or amorphous. On heating, they went through a liquid crystal smectic phase which, in some cases, was preceded by solid-to-solid transitions. On addition of water, the sequence of phases from the micellar phase to the lamellar phase was accounted for in terms of the geometric model of Sadoc and Charvolin. However, with certain surfactants this sequence was not complete, and the domains of existence of phases were altered.