Most birthmarks are probably due to defective migration of cells during fetal development. Once these cells start to multiply, they produce tissue with the characteristics of their cell type though they are not where those cells typically are located.