The Y2K bug, also known as the millennium bug, loomed as a global technological threat as the year 2000 approached.