A kilonova is an astronomical event that occurs when two neutron stars or a neutron star and a black hole merge into each other.