The primary function of osteoblasts is to form new bone. They achieve this by producing and secreting the components of the bone matrix, including collagen type I, which constitutes the majority of the bone matrix. Osteoblasts also secrete various enzymes and proteins that facilitate the mineralization process, turning the matrix into hard, calcified bone.