The episodes of the D.Gray-man anime are based on the manga series of the same name written by Katsura Hoshino.
en.m.wikipedia.org