Ambergris has been mostly known for its use in creating perfume and fragrance much like musk. Perfumes based on ambergris still exist. Ambergris has historically been used in food and drink.
source Wikipedia
please on)for better explanation, Videos and tos are available