What am I?

I come out of the earth, I am sold in the market. The one who buys me cuts my tail, takes off my suit of silk, and weeps beside me when I am dead. What am I?