A roof, comprising: a tile lath provided with a first elongate electrical conductor and with a second elongate electrical conductor placed at a distance from the first conductor, wherein the first electrical conductor and the second electrical conductor each run parallel to the tile lath and are covered with an insulating layer; a roof tile which rests on the tile lath, said roof tile comprising an undulation; a solar cell film attached to an upper side of the roof tile; a conductive piercing device which is connected to the roof tile and by which electrical energy generated in the solar cell film can be drawn off; wherein the piercing device and the insulating layer are adapted such that when the roof tile is placed on the tile lath the piercing device pierces through the insulating layer for the purpose of making electrical contact between the piercing device and the first conductor and second conductor, wherein the piercing device is provided with a first and second point-like structure which, after placing of the roof tile on the tile lath, make electrical contact with respectively the first and second conductor; wherein the solar cell film has an undulation corresponding to the undulation of the roof tile; and wherein the first conductor extends in a plane parallel to the roof and the second conductor extends in a plane perpendicularly of the roof, and wherein the first point-like structure is adapted to engage the first conductor in a direction perpendicularly of the roof and the second point-like structure is adapted to engage the second conductor in a direction parallel to the roof. a tile lath provided with a first elongate electrical conductor and with a second elongate electrical conductor placed at a distance from the first conductor, wherein the first electrical conductor and the second electrical conductor each run parallel to the tile lath and are covered with an insulating layer; a roof tile which rests on the tile lath, said roof tile comprising an undulation; a solar cell film attached to an upper side of the roof tile; a conductive piercing device which is connected to the roof tile and by which electrical energy generated in the solar cell film can be drawn off; wherein the piercing device and the insulating layer are adapted such that when the roof tile is placed on the tile lath the piercing device pierces through the insulating layer for the purpose of making electrical contact between the piercing device and the first conductor and second conductor, wherein the piercing device is provided with a first and second point-like structure which, after placing of the roof tile on the tile lath, make electrical contact with respectively the first and second conductor; wherein the solar cell film has an undulation corresponding to the undulation of the roof tile; and wherein the first conductor extends in a plane parallel to the roof and the second conductor extends in a plane perpendicularly of the roof, and wherein the first point-like structure is adapted to engage the first conductor in a direction perpendicularly of the roof and the second point-like structure is adapted to engage the second conductor in a direction parallel to the roof.