Protoplanetary discs are natural consequence of star formation. These discs hold the left-over material from star formation, which constitutes the reservoir from which new planetary systems may form. The fate of a new planetary is then intimately linked to the evolution and final dispersal of the disk from which is born, which determines also the striking diversity observed in extra-solar planetary systems. I will briefly review our understanding of disc dispersal via a photoevaporative wind in the context of planet formation, and show how both processes are finally dominated by the irradiation from their central star.