The diversity in mass and composition of planetary atmospheres stems from the different building blocks present in protoplanetary discs and from the different physical and chemical processes that these experience during the planetary assembly and evolution. This review aims to summarise, in a nutshell, the key concepts and processes operating during planet formation, with a focus on the delivery of volatiles to the inner regions of the planetary system.