The government in Vienna did not agree on the teaching of military subjects in Hungarian,

and despite another law and several parliamentary resolutions, it was a military hospital that operated in the building for the following decades. During the War of Independence in 1848-49, the Hungarian Military High School was established on the initiative of General Lázár Mészáros, Minister of Defence, but it could only operate for a short period of time. After the War of Independence, the Ludovika building once again housed a military hospital.