To move closer to someone or something you are chasing or competing against.
"The pursuing frigate was gaining upon the merchant vessel with every passing hour."
The hounds were gaining upon the fox.
— Robert S. Surtees, 'Mr. Sponge's Sporting Tour', 1853