James Sobieski received a favorable sentence during the Silent Sejm in 1717, which enabled him to return to the Polish–Lithuanian Commonwealth and recover his family property which had been confiscated by King Augustus. He returned to Poland and reconciled with the king, and subsequently settled in the Sobieski's ancestral castle in Żółkiew. After falling out of favor with Holy Roman Emperor Charles VI for allowing his daughter Maria Clementina Sobieska to marry James Francis Edward Stuart he lost the principality of Oława in 1719, but was able to regain his Silesian holdings in 1722. Sobieski would return to Oława periodically between 1722 and 1734. He spent the last years of his life managing his properties, traveling between his residences in Ukraine and Silesia, while devoting himself to philanthropy.