of bears. The sun bear leads the most
arboreal lifestyle among all bears. It is an excellent climber; it sunbathes or sleeps in trees above the ground. Bedding sites consist mainly of fallen hollow logs, but they also rest in standing trees with cavities, in cavities underneath fallen logs or tree roots, and in tree branches high above the ground. It is also an efficient swimmer. It is noted for its
intelligence; a captive bear observed sugar being stored in a cupboard locked by a key, and later used its claw to open the lock. The sun bear has
home ranges of varying sizes in different areas, ranging from in Borneo and
Peninsular Malaysia; and in Ulu Segama Forest Reserve in
Sabah. The tiger is its major predator;
dholes and leopards have also been recorded preying on sun bears, but cases are relatively few. In one incident, a tiger-sun bear interaction resulted in a prolonged altercation and in the death of both animals. In another incident, a wild female sun bear was swallowed by a large
reticulated python in
East Kalimantan. Sun bears usually do not attack humans unless provoked to do so, or if they are injured or with their cubs; their timid nature led these bears to be often
tamed and kept as
pets in the past. Sun bears are fierce when surprised in the forest.
Diet The sun bear is an omnivore with a broad diet, such as ants, bees, beetles, honey,
termites, and plant material such as seeds and several kinds of fruits. Sun bear scat collected in Ulu Segama Forest Reserve in Sabah also contained remains of turtles and other reptiles, and of
figs and other fruits.
Oil palms are nutritious but not enough for subsistence. It forages mostly at night. It tears open hollow trees with its long, sharp claws and teeth in search of wild bees and honey. It breaks termite mounds and quickly licks and sucks the contents, holding pieces of the broken mound with its front paws. Sun bears eat the centre of
coconut palms, and crush oil-rich seeds such as
acorns.
Oestrus lasts five to seven days. Sun bears become
sexually mature at two to four years of age. Reported lengths for
Gestation varies from 95 to 240 days; pregnancy tends to be longer in zoos in
temperate climate possibly due to
delay in implantation or
fertilisation. Births occur inside hollow tree cavities. A litter typically comprises one or two cubs weighing around each. Cubs are born deaf with eyes closed. The eyes open at nearly 25 days, but they remain blind till 50 days after birth; the sense of hearing improves over the first 50 days. Cubs younger than two months are dependent on external stimulation for defecation. Cubs are kept on
buttress roots at the base of trees until they learn how to walk and climb properly. Mothers protect their cubs aggressively. Offspring remain with their mother for nearly the first three years of their lives. Lifespan in captivity is generally over 20 years; one individual has lived for 34 years. ==Threats==