Mounted infantry were infantry who rode horses instead of marching, but, as infantry does in general, fought on foot (in the modern era with muskets or rifles, but before that with swords, spears, bows, or crossbows). In contrast, cavalry fought on horseback. The original dragoons were essentially mounted infantry.