Efficient hydrogen production through methane pyrolysis is hindered by high temperature required and frequent catalyst deactivation due to carbon deposition. This study proposes a novel use of variable-frequency microwave heating to enhance the efficiency and stability of methane pyrolysis by leveraging the resonance effects between microwave frequencies and dielectric properties of activated charcoal (AC). A solid-state variable-frequency microwave reactor was employed to modulate microwave frequencies to match the dielectric properties of AC, with a peak tanδ of 0.19 at 4600 MHz. Experimental results showed that at a resonance frequency of 4650 MHz and a microwave power of 100 W, the reaction temperature of AC reached 960 °C within 2 min, achieving a 100% methane conversion rate. However, carbon deposition reduced the conversion rate to 35.1% after 150 min. By cyclically adjusting the microwave frequencies between 4650 MHz and 4640 MHz, the catalyst was successfully reactivated, restoring the conversion rate to 100%. This frequency modulation method enabled continuous methane pyrolysis for 1300 min, highlighting the potential of variable-frequency microwave heating as a novel and efficient approach for a sustainable production of green hydrogen.