The city's 19th-century history was closely tied to the major events in Europe. The Peace of Pressburg between Austria and France was signed here in 1805. Theben Castle was ruined by Napoleon's French troops during an invasion of 1809. In 1825 the Hungarian National Learned Society (the present Hungarian Academy of Sciences) was founded in Pressburg using a donation from István Széchenyi. In 1843 Hungarian was proclaimed the official language in legislation, public administration, and education by the Diet in the city.