Conjugated microporous polymers (CMPs) offer a unique structure integrating π-conjugated backbone into a porous network for the simultaneous transport of charges and materials. However, tuning electronic properties of CMPs so far has been limited to an approach of varying the monomers, and the precious metal catalysts are inevitably needed for the C-C coupling reaction. Here, we present a powerful strategy to synthesize CMPs and precisely tune their optical band gap and surface area through metal-free in situ cyclization reaction controlled by the acid strength of acid catalysts. Notably, the optical band gap of CMPs showed a linear relationship with the p Ka of acid catalysts, which provides us with the ability to obtain the desired band gap between 2.07 and 3.35 eV, falling in the range of the visible solar spectrum. Moreover, CMPs exhibited excellent textural properties such as microporosity and high specific surface area.