Ameloblasts are specialized cells derived from the inner enamel epithelium that secrete enamel matrix proteins, which then mineralize to form enamel. Odontoblasts, on the other hand, are derived from the dental papilla and are responsible for forming dentin. They secrete dentin matrix proteins that mineralize to form the hard dentin layer.