In 1731, the government purchased houses at the site of the present building and construction of a new building started the next year. The Sabor first met in the new building on 6 May 1737. The building was originally designed to accommodate archives, the court and the office of the ban; however, the government of Zagreb County moved in as well in 1765. The ban's office, the court and the archives moved out of the building in 1807, when a building across St. Mark's Square was bought to accommodate them. Subsequently, the newly purchased building was named Banski dvori after its new primary purpose of housing the ban and his office. The Zagreb County government purchased buildings adjacent to the parliament in 1839 and commissioned a new building at the site. It was completed in 1849; in the meantime, the Sabor had to convene elsewhere; it met in a theatre building located on a corner of the square. The theatre building later became the Zagreb City Hall.