Horses have been domesticated for at least 5000 years. They have been used by humans in many different ways for travel, work, food, and pleasure and showing. Cavalry horses were used in war until the middle 20th century. They are used for riding and transport. They are also used for carrying things or pulling carts, or to help plow farmer's fields in agriculture. People have used selective breeding to make bigger horses to do heavy work.