This article presents a numerical framework to predict the mechanical behavior of knitted fabrics from their discrete structure at the fabric yarn level, i.e., the mesostructure, utilizing the hierarchical multiscale method. Due to the regular distribution of yarn loops in a knitted structure, the homogenization theory for periodic materials can be employed. Thus, instead of considering the whole fabric sample under loading, a significantly less computationally demanding analysis can be done on a repeated unit cell (RUC). This RUC is created based on simple structural parameters of knitted yarn loops and its fabric yarns are assumed to behave transversely isotropic. Nonlinear finite element analyses are performed to determine the stress fie...