The structure of benzimidazole has been determined in the electronic ground and excited states using rotationally resolved electronic spectroscopy. The rovibronic spectra of four isotopomers and subsequently the structure of benzimidazole have been automatically assigned and fitted using a genetic algorithm based fitting strategy. The lifetimes of the deuterated isotopomers have been shown to depend on the position of deuteration. The angle of the transition dipole moment with the inertial a-axis could be determined to be -30 degrees. Structures and transition dipole moment orientation have been calculated at various levels of theory and were compared to the experimental results.