Hexagonal boron nitride is a wide bandgap semiconductor with very high thermal and chemical stability that is used in devices operating under extreme conditions. The growth of high-purity crystals has recently revealed the potential of this material for deep ultraviolet emission, with intense emission around 215 nm. In the last few years, hexagonal boron nitride has been attracting even more attention with the emergence of two-dimensional atomic crystals and van der Waals heterostructures, initiated with the discovery of graphene. Despite this growing interest and a seemingly simple structure, the basic questions of the bandgap nature and value are still controversial. Here, we resolve this long-debated issue by demonstrating evidence for an indirect bandgap at 5.955 eV by means of optical spectroscopy. We demonstrate the existence of phonon-assisted optical transitions and we measure an exciton binding energy of about 130 meV by two-photon spectroscopy. Scientists resolve the long-debated issue of the nature and value of the bandgap in hexagonal boron nitride by providing evidence for an indirect bandgap at 5.955 eV and an exciton binding energy of about 130 meV by means of optical spectroscopy.