Langmuir-Blodgett (LB) multilayers of (E)-N-alkyl-4-[2-(4-docosyloxyphenyl)ethenyl]pyridinium bromide, CBH2n+1-Py(+)-CH=CH-C6H4-O-C22H45Br- (dye I), are centrosymmetric (Y-type) for n less than or equal to 6 and non-centrosymmetric (Z-type) for 8 less than or equal to n less than or equal to 20. The areas obtained from grazing incidence synchrotron X-ray diffraction indicate that the molecules adopt a 'stretched' rather than a 'U-shaped' configuration and, unlike conventional amphiphilic materials, the long chain homologues do not invert during deposition. The second-harmonic intensity from films of the higher homologues (n greater than or equal to 10) increases quadratically with the number of LB layers (I-2 omega(N) = I-2 omega(1)N-2) whereas for the lower homologues (n less than or equal to 6) the intensity is negligible for even numbers of layers. The nonlinear optical properties of the sulfur (dye II), selenium (dye III) and quinolinium (dye TV) analogues are also reported and, in each case, quadratic enhancement of the second-harmonic intensity has been observed for suitable combinations of alkyl chain lengths. The second-order susceptibility, chi((2))(zzz), of a 100 layer LB film of (E)-N-dodecyl-4-[2-(4-docosyloxyphenyl)ethenyl] quinolinium bromide (dye IV) is 20 pm V-1.