Castoreum is the liquid released from the castor sacs of the beaver. It is a yellowish liquid. It is mixed together with the beaver's urine. It is used to mark territory. Both male and female beavers have two castor sacs. They have two glands in two empty spaces under the skin. They are between the pelvis and the base of the tail. The castor sacs are not glands.