How old was Henry IV when he became king of Germany?

King Henry IV was 16 years old when he ruled Germany.