Dyeing is a method of imparting color to textiles by applying dyes. There are two major types of dyes - natural dyes extracted from plants/animals/minerals and synthetic dyes made in a laboratory. Dyes can be applied at different stages of textile production from fibers to yarns to fabrics to finished garments. Common dyeing methods include stock dyeing, yarn dyeing, piece dyeing, and garment dyeing. Proper dye and method selection are needed for good colorfastness.