Original: The motivation here is that the p-torsion in the ideal class group of K had already been identified by Kummer as the main obstruction to the direct proof of Fermat's last theorem.
Simplified: The motivation here was undoubtedly that the -torsion in the ideal class group of   had already been identified by Kummer as the main obstacle to the direct proof of Fermat's last theorem.