As a result of the first of Partitions of Poland (Treaty of St-Petersburg dated 5 July 1772, the Galicia area was attributed to the Habsburg Monarchy [REF].
For more details, see the article Kingdom of Galicia and Lodomeria.