What was Prussia's motivation for war with France in 1870?

In July of 1870, France declared war on Prussia. Prussia responded and easily defeated the forces of Napoleon III.