In short: Bees make beeswax themselves. Young workers produce it on their abdomen and build the combs from it. Beekeepers later melt it down and make candles, for example.

Contents
How the wax is made
The building bees (Baubienen) are responsible. These are young workers, about 13 to 20 days old, most of all, according to the LWG, between the 12th and 18th day. They have eight wax glands on their belly. The wax comes out liquid and turns into small white flakes in the air.
Honey or sugar feed serves as the raw material. The glands also need pollen. More on this: How do bees build their combs?

Freshly built, it is almost white.
Beeswax in brief
- Made by
- Building bees, about 13 to 20 days old
- Glands
- Eight, on the abdomen
- Melting point
- About 61 to 65 °C
- Density
- Lighter than water
Why it turns yellow
New wax is white. The yellow colour comes later from pigments in the pollen and from the bees’ sealing resin, propolis.
What beekeepers make from it
Wax melts at about 61 to 65 °C and becomes solid again at around 58 °C. It is lighter than water; its density is 0.96 to 0.97. Beekeepers melt and clean the wax and make foundation sheets (Mittelwände) or candles from it. Wax is also used in cosmetics.
You can make candles yourself: Rolling candles from beeswax.

I roll light out of sheets of wax.
Good to know
Residues can build up in wax, for example from treatments against the varroa mite or from plant protection products. From there they can pass into the honey.
Something else is adulterated wax: sometimes beeswax is mixed with paraffin or stearin. That is an adulteration and has nothing to do with residues.