 It was built in 1574 or a few years earlier by John William of Losenstein as a private Lutheran German grammar school in Lower Austria.According to the school statutes the school was for the youth of the nobility and non-nobility.John William also restored the nearby castle 'Schallaburg' and parish church in Loosdorf in renaissance style.