The former is an extension of the latter. If you run first-principles molecular dynamics (i.e., MD using forces obtained from electronic structure calculations), you can additionally apply metadynamics to enhance the exploration of certain processes of interest.