In angiosperms, the endosperm is formed when one of the male gametes fuses with the diploid secondary nucleus (or central cell) in a process called double fertilization, resulting in a triploid (3n) tissue.