Saruman had ordered his Uruk-hai to attack the Fellowship and retrieve the "halfling" who was important to Sauron. Upon seeing the Hobbits, the Uruk-hai mistook them for Frodo and took them.