The present-day appearance of Bad Homburg Castle is by and large the doing of Landgrave Frederick II (1633–1708). In 1622, the line of the House of Hesse-Homburg together with the City and Office of Homburg vor der Höhe was established as a tiny state in the Holy Roman Empire. When Frederick, a former war hero, assumed its regency, he had the old mediaeval castle torn down, with the exception of the keep, which is today known as "the White Tower", the landmark of the City of Bad Homburrg. At the site of the old castle, master builder Paul Andrich erected from 1679 onwards a castle with two inner courtyards. Architecturally unspectacular, without any great facade articulation and adorned only by two decorative portals, the new castle featured some 200 chambers and halls. Subsequent changes and modernisations changed the castle's appearance only slightly: Landgravine Elizabeth (1770–1840) had the royal wing extended vertically. Later, Kaiser Wilhelm II (1859–1941) adapted it to the requirements of an imperial summer residence.