Then he took a piece of iron the shape of the horse horse's foot , and clapped *it* on, and drove some nails through the shoe quite into its hoof, so that the shoe was firmly on

Are "it" and "horse" the same thing in the aforementioned sentence?
no