The invention relates to a method for producing halogenated oligomers and/or halogenated polymers of elements of the third to fifth main group, wherein the halogenated oligomers and/or halogenated polymers are synthesized from a first chain-forming agent and a second chain-forming agent in a plasma-chemical reaction. At least one of the two chain-forming agents is a halogen compound of an element of the third to fifth main group.