Not being of marriageable age is a [diriment impediment][1],

>A condition, circumstance, or situation that makes an action [of marrying] null and void in its intended effects. Thus an existing marital bond nullifies any attempt to enter a second marriage. 

The Church has the authority to determine impediments to marriage (cf. [Session 24 on Matrimony of the Council of Trent, can. 4][2]), but, according to [the commentary of canonist Charles Augustine, O.S.B., D.D., on 1917 can. 1067][3],

>The Code [of Canon Law] does not determine which of these [impediments] belong to the order of the natural and divine law, and which to the order of ecclesiastical law.

However,

> pastors of souls should deter from it [i.e., from marriage] young people who have not reached the age at which, according to the custom of the country, marriage is usually contracted.<br><br>In this formulation the impediment is of *merely ecclesiastical law*, which now demands a higher age than was formerly required. [The Decretals][4] [an early codification of ecclesiastical law] followed the Roman law in reckoning the age. There was a controversy between the Cassians and the Proculejans, until Justinian adopted the view of Proculejus, who maintained that the number of years, fourteen for boys and twelve for girls, should be decisive in admitting one to marriage. The Cassians, on the other hand, held that not only age but natural capacity for the marital act should be taken into consideration. […] There are pontifical constitutions which forbid marriage to be contracted at the age of six or seven, but they do not state a precise limit.

  [1]: https://www.catholicculture.org/culture/library/dictionary/index.cfm?id=33109
  [2]: http://www.ccel.org/ccel/schaff/creeds2.v.i.i.xi.html#v.i.i.xi-p4.40
  [3]: https://archive.org/details/1917CodeOfCanonLawCommentary/page/n2072
  [4]: https://isidore.co/calibre/browse/book/6518