Sun bears are mainly solitary animals, but they may live with a mate or their young offspring. They are typically territorial and mark their home range with scent markings. However, they may come together in areas where food is abundant, such as fruiting trees, and may tolerate the presence of other bears in those areas.