Three‐dimensional photonic crystals were fabricated by infiltrating an epoxy mold with a SiC/polyester mixture. The epoxy molds with normal or inverse diamond structures were formed by stereolithography. The size of the mold was 45 mm × 18 mm × 18mm, and the lattice constant of the photonic crystals was 18 mm. The effects of the epoxy mold type, aspect ratio (the ratio of height and diameter of a diamond lattice rod), and number of sample units on the formation of photonic band gap (PBG) and microwave absorption ability along the 〈100〉 direction were studied. The attenuations of microwave transmission and reflection were measured through the photonic crystal samples at a frequency range of 3–12 GHz with a network analyzer. The results obtained suggest that the combination of the absorbing material SiC and diamond structure has a dual effect to form a PBG with a high absorption ability.