During one of the early stages of the embryo's development, the cells that have the ability to carry out any function (stem cells) start to differentiate and specialize to carry out different functions. This way, the stem cells change and determine each specific cell type for each type of tissue.
The correct option is the second one "Differentiation is taking place to create new cells with specialized functions"