Here, we have developed a new strategy to stabilize i-motif DNA in neutral and alkaline media by incorporating C-rich sequences inside silica nano-channels. Subsequently, the reversibility of this conformational transition has been achieved using a positively charged protein. Importantly, this entire conformational transition can be performed in multiple cycles, which offers an alternative way to control i-motif formation other than pH and thermal annealing.