After 1906 Russia for some time had to pursue a cautious foreign policy in order to gain time to carry out reforms at home, to refit its army, and to rebuild its shattered navy. It set about these goals with the help of huge French loans that were contingent on the strengthening of the Franco-Russian alliance in both the diplomatic and military sense.