After the Revolution of 1848, then-Count Wilhelm became the first duke of Urach. A passionate artillery officer, he desired to improve the defenses of his castle and so began to build pre-outwork caponiers in the style of the imperial Fortress of Ulm (though not on a scale as grand) and a trench along the fortress to deter attack.