To mark the queen special pens or paint is used. This can be bought in beekeeping equipment stores.
JOACHIMS picture<div style="float:left;"><gallery caption="Catching a swarm by felling a tree" mode="packed-hover">File:Mark_queen.jpg|Marking a queen</gallery></div>