When Did Germany Become a Country?

Germany was founded as its own union and state in 1871. About 25 years before that, liberals and nationalists made attempts to create a unified German state.