miRNAs are transcribed as ~70 nucleotide precursors (modelled here) and subsequently processed by the Dicer enzyme to give a ~22 nucleotide product.
In terms of their origin, miRNAs are initially transcribed as approximately 70-nucleotide precursors and then undergo a refinement process involving the Dicer enzyme to produce a roughly 22-nucleotide molecule.