Complex sentence: After the partitions of Poland Polish territories came under control of the Russian Empire, the Austro-Hungarian Empire and the Kingdom of Prussia; the law of those countries ruled homosexual acts illegal.
Split into simpler sentences: After the partitions of Poland, Polish territories came under control of the Russian Empire, the Austro-Hungarian Empire, and the Kingdom of Prussia. The law of those countries ruled homosexual acts illegal.