We present results of first-principles calculations to clarify the activation and deactivation mechanism of indium (In) atoms in silicon (Si). The interaction between In atoms is found to be attractive and leads to spontaneous formation of the stable and electrically inactive nearest neighbor substitutional (NNS) ${\mathrm{In}}_{2}$ cluster, which is responsible for the much lower electrical activity compared with that for the boron atoms in Si. An elemental process of the formation of the NNS ${\mathrm{In}}_{2}$ cluster is found to be exothermic and its activation barrier is $0.7\phantom{\rule{0.3em}{0ex}}\mathrm{eV}$, which is comparable to that $(0.5\phantom{\rule{0.3em}{0ex}}\mathrm{eV})$ of the kick-out reaction from an interstitial In to a substitutional In with an interstitial Si. We found that codoping boron (B) and carbon (C) with In makes the inactive ${\mathrm{In}}_{2}$ cluster unstable, and is efficient to increase the electrical activity. The activation∕deactivation mechanism of In is relevant to electronic and elastic energy of the clusters $(\mathrm{In}\text{\penalty1000-\hskip0pt}\mathrm{In},\mathrm{In}\text{\penalty1000-\hskip0pt}\mathrm{B},\mathrm{In}\text{\penalty1000-\hskip0pt}\mathrm{C})$, which is clearly explained in the framework of the tight-binding approximation. In addition, we present the results of calculations for the vibrational properties of $\mathrm{In}\text{\penalty1000-\hskip0pt}\mathrm{B}$ and $\mathrm{In}\text{\penalty1000-\hskip0pt}\mathrm{C}$ clusters in Si.