candidate: But after the retreat from Russia , in spite of incomplete victories , France was defeated by the sixth coalition at Leipzig , in the Peninsular War at Vitoria and at the hands of the seventh coalition at Waterloo .