The university's main building – now part of the UNESCO Heritage Site – is located in Pest on the left bank of the Danube, next to the Great Market Hall and facing the Budapest University of Technology and Economics on the river's other bank. The main building was planned by Miklós Ybl as the Main Customs Office in Neo-Renaissance style. It was finished in 1874. The building was called "Vámház" (Customs House) and "Fővámpalota" (Chief Customs Palace). This is also the name of the nearby avenue. The building was connected to ports of the Danube by four tunnels. It had a railroad connection. During WW2 the Hungarian, German and Soviet troops used the building as a military base. The Customs House suffered serious damage during the war. In 1948 it became the main building of the University of Economics. It underwent major renovations in 1950 and later in 1989–1990.