Answer
Harald Bluetooth's reign in Denmark ended when his son, Sweyn Forkbeard, seized power in 985 or 986. Sweyn's rebellion was successful, likely fueled by political grievances and a desire to consolidate power. Bluetooth was forced to flee Denmark, seeking refuge in Pomerania, where he passed away in around 986 or 987.