Following the death of Bishop Johann von Manderscheid, the Protestant majority in the chapter of the diocese of Strasbourg elected the 15-year-old Johann Georg to administer the diocese on 20 May 1592. This decision was designed to unite Protestants across Germany behind them. The Catholic minority elected Cardinal Charles of Lorraine in opposition to Johann. There followed twelve years' of war in Strasbourg. It was finally ended by the Treaty of Haguenau of 22 November 1604. Johann ceded the diocese to Charles and received compensation in return.