A method for producing a polybenzazole polymer by reacting a reaction mixture (R G) comprising the following components: (a) at least one aromatic dicarboxylic compound of the general formula: in which Ar 1 is selected from the group consisting of unsubstituted or at least monosubstituted phenylene, naphthalenediyl, anthracenediyl, biphenyldiyl, diphenylmethanediyl, diphenyl ether diyl, diphenyl thioether diyl, diphenyl sulfone diyl, benzophenonediyl, pyridinediyl, pyrimidinediyl, furandiyl and thiophenediyl, wherein the substituents are selected from the group consisting of -F, -Cl, -Br, -OR 1 and -C 1 -C 10 -alkyl, wherein R 1 is -H or -C 1 -C 10 -alkyl; X 1, X 2 are each independently selected from the group consisting of -OR 2, -F, -Cl and -Br, wherein R 2 is -H, -C 1 -C 10 -alkyl, -C 1 -C 10 -alkenyl or a repeating unit of the general formula (Ia): in which m is a natural number from 1 to 50, and R 3 is -H, -C 1 -C 10 -alkyl or -C 1 -C 10 -alkenyl; (b) at least one aromatic diamino compound of the general formula (IIa), (IIb), (IIc) and/or (IId): in which n is 0 or 1 Y 1, Y 2, Y 3, Y 4 are each independently -H, -OR 4 or -SR 4, wherein R 4 is selected from the group consisting of -H, -C 1 -C 10 -alkyl, trimethylsilyl, tert-butyldimethylsilyl, acetyl and tert-butyloxycarbonyl, and wherein at most one of the radicals Y 1 and Y 2 is -H, and wherein at most one of the radicals Y 3 and Y 4 is -H; Z 1, Z 2, Z 3, Z 4, Z 5, Z 6, Z 7, Z 8 are each independently -NH 2 or -NH 3 + Q -, wherein Q - is an anion equivalent selected from the group consisting of F -, Cl -, Br -, I -, HSO 4 -, SO 4 2-, H 3 C-SO 3 -, p-H 3 C-C 6 H 4 -SO 3 - and NO 3 -; and (c) at least one ionic liquid; to obtain a product mixture (P G) comprising the polybenzazole polymer and the at least one ionic liquid. (a) at least one aromatic dicarboxylic compound of the general formula: in which Ar 1 is selected from the group consisting of unsubstituted or at least monosubstituted phenylene, naphthalenediyl, anthracenediyl, biphenyldiyl, diphenylmethanediyl, diphenyl ether diyl, diphenyl thioether diyl, diphenyl sulfone diyl, benzophenonediyl, pyridinediyl, pyrimidinediyl, furandiyl and thiophenediyl, wherein the substituents are selected from the group consisting of -F, -Cl, -Br, -OR 1 and -C 1 -C 10 -alkyl, wherein R 1 is -H or -C 1 -C 10 -alkyl; X 1, X 2 are each independently selected from the group consisting of -OR 2, -F, -Cl and -Br, wherein R 2 is -H, -C 1 -C 10 -alkyl, -C 1 -C 10 -alkenyl or a repeating unit of the general formula (Ia): in which m is a natural number from 1 to 50, and R 3 is -H, -C 1 -C 10 -alkyl or -C 1 -C 10 -alkenyl; Ar 1 is selected from the group consisting of unsubstituted or at least monosubstituted phenylene, naphthalenediyl, anthracenediyl, biphenyldiyl, diphenylmethanediyl, diphenyl ether diyl, diphenyl thioether diyl, diphenyl sulfone diyl, benzophenonediyl, pyridinediyl, pyrimidinediyl, furandiyl and thiophenediyl, wherein the substituents are selected from the group consisting of -F, -Cl, -Br, -OR 1 and -C 1 -C 10 -alkyl, wherein R 1 is -H or -C 1 -C 10 -alkyl; wherein the substituents are selected from the group consisting of -F, -Cl, -Br, -OR 1 and -C 1 -C 10 -alkyl, wherein R 1 is -H or -C 1 -C 10 -alkyl; X 1, X 2 are each independently selected from the group consisting of -OR 2, -F, -Cl and -Br, wherein R 2 is -H, -C 1 -C 10 -alkyl, -C 1 -C 10 -alkenyl or a repeating unit of the general formula (Ia): m is a natural number from 1 to 50, and R 3 is -H, -C 1 -C 10 -alkyl or -C 1 -C 10 -alkenyl; (b) at least one aromatic diamino compound of the general formula (IIa), (IIb), (IIc) and/or (IId): in which n is 0 or 1 Y 1, Y 2, Y 3, Y 4 are each independently -H, -OR 4 or -SR 4, wherein R 4 is selected from the group consisting of -H, -C 1 -C 10 -alkyl, trimethylsilyl, tert-butyldimethylsilyl, acetyl and tert-butyloxycarbonyl, and wherein at most one of the radicals Y 1 and Y 2 is -H, and wherein at most one of the radicals Y 3 and Y 4 is -H; Z 1, Z 2, Z 3, Z 4, Z 5, Z 6, Z 7, Z 8 are each independently -NH 2 or -NH 3 + Q -, wherein Q - is an anion equivalent selected from the group consisting of F -, Cl -, Br -, I -, HSO 4 -, SO 4 2-, H 3 C-SO 3 -, p-H 3 C-C 6 H 4 -SO 3 - and NO 3 -; and n is 0 or 1 Y 1, Y 2, Y 3, Y 4 are each independently -H, -OR 4 or -SR 4, wherein R 4 is selected from the group consisting of -H, -C 1 -C 10 -alkyl, trimethylsilyl, tert-butyldimethylsilyl, acetyl and tert-butyloxycarbonyl, and wherein at most one of the radicals Y 1 and Y 2 is -H, and wherein at most one of the radicals Y 3 and Y 4 is -H; wherein R 4 is selected from the group consisting of -H, -C 1 -C 10 -alkyl, trimethylsilyl, tert-butyldimethylsilyl, acetyl and tert-butyloxycarbonyl, and wherein at most one of the radicals Y 1 and Y 2 is -H, and wherein at most one of the radicals Y 3 and Y 4 is -H; Z 1, Z 2, Z 3, Z 4, Z 5, Z 6, Z 7, Z 8 are each independently -NH 2 or -NH 3 + Q -, wherein Q - is an anion equivalent selected from the group consisting of F -, Cl -, Br -, I -, HSO 4 -, SO 4 2-, H 3 C-SO 3 -, p-H 3 C-C 6 H 4 -SO 3 - and NO 3 -; and (c) at least one ionic liquid;