Ents were created by Eru for the Vala Yavanna when she discovered Aule's children, the Dwarves, and knew they would cut down the trees she created and held dear for their forges. The Ents were charged with protecting trees and forests, and herding them.