If someone is “spinning a yam” they are exaggerating the truth.
First printed about 1812, the expression is nautical and has nothing to do with domestic spinning.
Sailors were required to spend long tedious shifts working in pairs, spinning fibers into the endless miles of rope needed to keep their sailing ship sound.
To pass the time, they entertained themselves by telling tall tales, or “spinning yarns.”