Planets have been revealed both in binary and triple stellar systems. Although there have been several studies of the late stages of planet formation in binary stars this process does not appear to have been studied in triple stellar systems. To understand how the late stage of planetary accretion is affected by a third companion, in this work we have numerically investigated the formation of planets in a hypothetical triple stellar system. The system is composed by an inner binary formed by two half-solar-mass components orbited by a solar-mass star. In our experiments, lunar and Mars-sized planetary embryos are distributed around the centre of mass of the inner binary system. Our main goal is to analyse how the formation of planets evolve...