Answer
After his defeat at the Battle of Verdun in 1916, Wilhelm was appointed Commander of the Army Group German Crown Prince, a position he held until the end of the war. In this role, he was responsible for the defense of the German lines in the west. He was also involved in the planning of the last major German offensive of the war, the Spring Offensive, which was a failure.