Heavy cavalry in the form of gendarmes were relevant as late as the 16th century, I thought (though my source is Wikipedia on that).