In this paper, a photonic crystal containing graphene and metamaterial layers is investigated. The absorption spectrum of the structure in the terahertz range is obtained using the transfer matrix method. The results show that by adding a Si, SiO2 or metamaterial layer between two graphene layers, the terahertz absorption increases significantly. The results also reveal that in wide range of physical parameters, the approximately complete absorption (∼100%) occurs. Furthermore, the results indicate that the structure with metamaterial layer has the highest absorption performance.