The breed was created by Captain Max von Stephanitz, who wanted to develop a working dog for herding sheep, guarding property, and serving in the military. He carefully selected and bred dogs with specific characteristics like intelligence, obedience, and loyalty.