The building was commissioned by Alois Waldherr, a teacher and private school principal, and was constructed in 1877. Until the mid-1930s various schools operated in the building. Then part of the city administration moved into it. At the beginning of the war in 1941, it was joined by the police department for vehicle registration. In May 1945, the premises were taken over by the City Command of Ljubljana. Subsequently, it housed various administrative offices and services, and by 1949, the National Militia Administration for Slovenia was operating there, along with a militia station until the early 1970s.
The cells were discovered in 2007 and in the same year were declared a cultural monument of national importance by decree, as they are considered the only preserved secret police cells. When the cells were discovered, there were doubts about whether they really belonged to state security or the secret police, but after a decade and a half, a document was found confirming the existence of the cells. The cells in the basement are mentioned in a 1951 document from the Ministry of Internal Affairs of the People’s Republic of Slovenia, which discusses irregularities in the execution of sentences. However, it is still not entirely clear whether the cells were actually used by state security.