What caused the battle of Puebla?

For the war the Mexicans borrowed money from Spain France and England so the Mexican never paid it back and the French got mad so the napoleon the 3rd told Benito Juarez he was going to occupy Mexico until he got his money and the first settlement the French came upon was Puebla and the Mexican general ignacio zaragoza took his men and set up defensive positions within the city and fought