Mineralisation of tooth is a constant process with a tug-of-war between pathogenic and protective factors [3:09].
If it's in the balance, of the remineralisation factors prevail, you can stop the progress of the cavity. But deeper the cavity, this is harder to achieve.