Which of the following did the peace of Augsburg accomplish

it set up the Spanish Inquisition to root out heresy.
it ended the Thirty Years' war.
it granted the Netherlands independence from Spain.
it allowed German rulers to choose the religion of their state.

It allowed German rulers to choose the religion of their state.