Pitys was a chaste nymph chased by Pan. She escaped, as many Greek maidens did such a fate, by changing into a pine tree (pitys).
A nice touch to the story says that Pan took a branch of this tree and wore it as a necklace. (Two thousand years later he would have kept a lock of her hair in a locket.) For a similar story, in which Pan also gave chase, see Syrinx.