Yarn is a linear assembly of fibers or filaments twisted together to impart strength or laid together to form a continuous strand suitable for fabric manufacturing. There are two types of yarn: staple yarn and filament yarn. Staple yarn is made of shorter fibers or filaments held together by twisting, while filament yarn consists of continuous filaments running the yarn's full length that are either twisted or untwisted. Yarn can be further classified based on fiber length, number of plies, twisting direction, and spinning method.