Complex sentence: William spent his youth in Berlin at the Prussian court, where he followed a military education and served in the Prussian army.
Split into simpler sentences: William spent his youth in Berlin at the Prussian court. There he followed a military education and served in the Prussian army.