At the same time, the territories of the Hämeenlinna parish that were not parts of the town itself became Hämeenlinnan maalaiskunta, which in 1948 was divided between Hämeenlinna, Vanaja and Renko. Vanaja was divided between Hämeenlinna, Janakkala, Renko and Hattula in 1967.
The areas outside the town limits of Hämeenlinna parish were reorganized into a separate administrative unit called Hämeenlinnan maalaiskunta in 1948. This unit was later divided into three parts: Hämeenlinna, Vanaja, and Renko. In 1967, Vanaja was further divided among four municipalities: Hämeenlinna, Janakkala, Renko, and Hattula.