Dark energy is the basic constituent of the today’s Universe, one that is responsible for its accelerated expansion. Although astronomers observe the cosmological effects of the impact of dark energy, they still do not know exactly what it is. A new method for measuring the largest distances in the Universe helps solve the mystery. A key role is played by the most powerful cosmic explosions — gamma-ray bursts.