iRegulon uses a combination of motif discovery algorithms and a large database of position weight matrices (PWMs) to identify TF binding motifs in genomic sequences. By comparing these motifs with known motifs in its database, it can predict TFs that likely regulate a given set of genes. This process involves scanning the promoter regions of genes and assessing the enrichment of TF binding sites.