The invention relates to a method for producing p-doped silicon layers, in particular silicon layers which are produced from liquid silane-containing formulations. The invention also relates to a substrate coated with a p-doped silicon layer. The invention further relates to the use of certain dopants based on boron compounds for p-doping a silicon layer.