LC medium comprising a low-molecular-weight liquid-crystalline mixture, one or more self-aligning additives of formula I: R 1 -A 1 -(Z 2 -A 2) m1 -R 2 R 2 denotes a group or Sp 1, Sp 3, Sp 5 independently of each other, denotes a spacer group or a single bond, Sp 2 denotes a trivalent, acyclic spacer group, preferably a group CH, CR 0, or N, Sp 4 denotes a tetravalent, acyclic spacer group, preferably a carbon atom, Y is independently of each other O, S,, NR 0 or a single bond, X 1 and X 2 independently of each other a group -OH, -NH 2, -NHR 11, -SH, -SR 11, -NR 11 2, -OR 11 or - OH, R 11 in each case independently denotes a halogenated or unsubstituted alkyl chain having 1 to 15 C atoms, where, in addition, one or more CH 2 groups in this alkyl chain may each be replaced, independently of one another, by -C≡C-, -CH=CH-, - O-, -O -, - - or -O- in such a way that O or N atoms are not linked directly to one another, and where two radicals R 11 are optionally linked to one another to form a ring, B any ring or condensed ring, optionally substituted by one, two or three R L, p 2, 3, 4 or 5, A 1 and A 2 each, independently of one another, denote an aromatic, heteroaromatic, alicyclic or heterocyclic group, which may also contain fused rings, and which may also be mono- or polysubstituted by R L, R L in each case, independently of one another, denotes OH, SH, SR 0, -(CH 2) n1 -OH, F, Cl, Br, I, -CN, -NO 2, -NCO, -NCS, -OCN, -SCN, -C(=O)N(R 0) 2, -C(=O)R 0, -N(R 0) 2, -(CH 2) n1 -N(R 0) 2, optionally substituted silyl, optionally substituted aryl or cyclo-alkyl having 6 to 20 C atoms, or straight-chain or branched alkyl, alkoxy, alkylcarbonyl, alkoxycarbonyl, alkylcarbonyloxy or alkoxycarbonyloxy having 1 to 25 C atoms, in which, in addition, one or more H atoms may be replaced by F or Cl, and two vicinal R L together are optionally =O, n1 denotes 1, 2, 3, 4 or 5, Z 2 in each case, independently of one another, denotes a single bond, -O-, -S-, -CO-, -CO-O-, -OCO-, -O-CO-O-, -OCH 2 -, -CH 2 O- -SCH 2 -, -CH 2 S-, -CF 2 O-, -OCF 2 -, -CF 2 S-, -SCF 2 -, -(CH 2) n1 -, -CF 2 CH 2 -, -CH 2 CF 2 -, -(CF 2) n1 -, -CH=CH-, -CF=CF-, -C≡C-, -CH=CH-COO-, -OCO-CH=CH- or CR 0 R 00, R 0 and R 00 each, independently of one another, denote H or alkyl having 1 to 12 C atoms, R 1 denotes H, halogen, straight-chain, branched or cyclic alkyl having 1 to 25 C atoms, in which, in addition, one or more non-adjacent CH 2 groups may be replaced by -C≡C-, -CH=CH-, -NR 0 -, -O-, -S-, -CO-, -CO-O-, -O-CO-, -O-CO-O- in such a way that N, O and/or S atoms are not linked directly to one another, and in which, in addition, one or more tertiary carbon atoms (CH groups) may be replaced by N, and in which, in addition, one or more H atoms may be replaced by F or Cl, and m1 denotes 0, 1, 2, 3, 4 or 5. and it additionally comprises a polymerizable or polymerized component, where the polymerized component is obtainable by polymerization of a polymerizable component. R 2 denotes a group or Sp 1, Sp 3, Sp 5 independently of each other, denotes a spacer group or a single bond, Sp 2 denotes a trivalent, acyclic spacer group, preferably a group CH, CR 0, or N, Sp 4 denotes a tetravalent, acyclic spacer group, preferably a carbon atom, Y is independently of each other O, S,, NR 0 or a single bond, X 1 and X 2 independently of each other a group -OH, -NH 2, -NHR 11, -SH, -SR 11, -NR 11 2, -OR 11 or - OH, R 11 in each case independently denotes a halogenated or unsubstituted alkyl chain having 1 to 15 C atoms, where, in addition, one or more CH 2 groups in this alkyl chain may each be replaced, independently of one another, by -C≡C-, -CH=CH-, - O-, -O -, - - or -O- in such a way that O or N atoms are not linked directly to one another, and where two radicals R 11 are optionally linked to one another to form a ring, B any ring or condensed ring, optionally substituted by one, two or three R L, p 2, 3, 4 or 5, A 1 and A 2 each, independently of one another, denote an aromatic, heteroaromatic, alicyclic or heterocyclic group, which may also contain fused rings, and which may also be mono- or polysubstituted by R L, R L in each case, independently of one another, denotes OH, SH, SR 0, -(CH 2) n1 -OH, F, Cl, Br, I, -CN, -NO 2, -NCO, -NCS, -OCN, -SCN, -C(=O)N(R 0) 2, -C(=O)R 0, -N(R 0) 2, -(CH 2) n1 -N(R 0) 2, optionally substituted silyl, optionally substituted aryl or cyclo-alkyl having 6 to 20 C atoms, or straight-chain or branched alkyl, alkoxy, alkylcarbonyl, alkoxycarbonyl, alkylcarbonyloxy or alkoxycarbonyloxy having 1 to 25 C atoms, in which, in addition, one or more H atoms may be replaced by F or Cl, and two vicinal R L together are optionally =O, n1 denotes 1, 2, 3, 4 or 5, Z 2 in each case, independently of one another, denotes a single bond, -O-, -S-, -CO-, -CO-O-, -OCO-, -O-CO-O-, -OCH 2 -, -CH 2 O- -SCH 2 -, -CH 2 S-, -CF 2 O-, -OCF 2 -, -CF 2 S-, -SCF 2 -, -(CH 2) n1 -, -CF 2 CH 2 -, -CH 2 CF 2 -, -(CF 2) n1 -, -CH=CH-, -CF=CF-, -C≡C-, -CH=CH-COO-, -OCO-CH=CH- or CR 0 R 00, R 0 and R 00 each, independently of one another, denote H or alkyl having 1 to 12 C atoms, R 1 denotes H, halogen, straight-chain, branched or cyclic alkyl having 1 to 25 C atoms, in which, in addition, one or more non-adjacent CH 2 groups may be replaced by -C≡C-, -CH=CH-, -NR 0 -, -O-, -S-, -CO-, -CO-O-, -O-CO-, -O-CO-O- in such a way that N, O and/or S atoms are not linked directly to one another, and in which, in addition, one or more tertiary carbon atoms (CH groups) may be replaced by N, and in which, in addition, one or more H atoms may be replaced by F or Cl, and m1 denotes 0, 1, 2, 3, 4 or 5.