Fabric 
frays when it starts to come undone, and starts to turn back into the individual strands it was made from.
A fray is also a 
battle or 
fight, and is often used as a turn of phrase when you are about to go into the middle of some activity, eg 
"he stepped into the fray".