The main threat to sun bears is habitat loss due to deforestation and human encroachment. They are also hunted for their body parts, particularly their gallbladders, which are used in traditional Asian medicine. Additionally, sun bears are sometimes captured and kept as exotic pets. These factors have led to a significant decline in sun bear populations throughout their range.