The photovoltaic properties of electrochemically prepared polyaniline films and polyaniline=organic semiconductor heterostructures are studied. The photovoltage of the heterostructures in the range of strong absorption of an organic semiconductor is one order higher than that of a polyaniline layer. It has been shown that a built-in electric field is formed at the polyaniline=organic semiconductor interface.