
Extract the answer to the question from the following context.
Question: What country did the Habsburg Monarchy rule over?
Context: The sovereignty of szlachta was ended in 1795 by Partitions of Poland, and until 1918 their legal status was dependent on policies of the Russian Empire, the Kingdom of Prussia or the Habsburg Monarchy.

Poland
