Most breeds of dog are at most a few hundred years old, having been artificially selected for particular morphologies and behaviors by people for specific functional roles.
People selected dogs they wanted based on what two things?
particular morphologies and behaviors