A detailed examination of the electronic structures of methylammonium lead triiodide (MAPI) and methylammonium iodide (MAI) is performed with ab initio molecular dynamics (AIMD) simulations based on density functional theory, and the theoretical results are compared to experimental probes. The occupied valence bands of a MAPI single crystal and MAI powder are probed with X-ray photoelectron spectroscopy, and the conduction bands are probed from the perspective of nitrogen K-edge X-ray absorption spectroscopy. Combined, the theoretical simulations and the two experimental techniques allow for a dissection of the electronic structure unveiling the nature of chemical bonding in MAPI and MAI. Here, we show that the difference in band gap between MAPI and MAI is caused chiefly by interactions between iodine and lead but also weaker interactions with the MA+ counterions. Spatial decomposition of the iodine p levels allows for analysis of Pb-I σ bonds and π interactions, which contribute to this effect with the involvement of the Pb 6p levels. Differences in hydrogen bonding between the two materials, seen in the AIMD simulations, are reflected in nitrogen valence orbital composition and in nitrogen K-edge X-ray absorption spectra.