Dog agility is a dog sport in which a handler directs a dog through an obstacle course in a race for both time and accuracy.