It is shown both theoretically and experimentally that the compacted ceramics can exhibit the properties of a phononic lattice, i.e., a forbidden gap may arise in the phonon spectrum. The position and width of the gap in such systems are determined by the average grain size of ceramics, as well as by the thickness and elastic properties of the grain boundaries. In the case of composites, a dominant role in the gap formation is played by the most fine-grained phase.