Why did North Korea set off a nuke bomb in 2017?

North Korea tested a nuclear bomb in 2017 in order to demonstrate its military strength and defiance against international sanctions and pressure. The country's leader, Kim Jong Un, has repeatedly stated that possessing nuclear weapons is crucial for the defense of North Korea against what it perceives as threats from the United States and its allies. Additionally, the test was seen as a way for North Korea to assert its power and influence in the region.