The traditional Christian opinion is that the Gospel of Matthew was written by the apostle Matthew. However, most contemporary Bible scholars agree that this book of the New Testament was produced by an anonymous author in the late 1st century A.D.
Many believe that the Gospel of Mark predates the other two synoptic gospels, including the Gospel of Matthew, and actually served to influence its subsequent compilation. Forty-five percent of the content in Matthew is shared with Luke and Mark, while an additional 10 percent is shared only with Mark and 25 percent is shared only with Luke. The writing of these gospels was part of a larger effort to record and codify the early history and beliefs of Christians.