The singularity bomb was a weapon, a powerful Grigari bomb device that was capable of creating a black hole that would destroy anything in its path. In an alternate timeline, it was deployed at Gateway, destroying both Starfleet and Borg fleets, and the planet itself. (DS9 - Millennium novel: The War of the Prophets)