Osteoblasts are specialized cells responsible for the synthesis and secretion of the bone matrix. Once these cells have completed their function and become embedded in the matrix, they differentiate into osteocytes. Osteocytes reside in small cavities called lacunae and maintain the bone matrix.