During gametogenesis and early development, a process called germline resetting takes place, where most epigenetic marks in chromatin are removed. This allows the reacquisition of pluripotency in the early embryo and proper differentiation of tissues during development.