question: When did Warsaw become the center of the Congress Poland ?
sentence: Warsaw remained the center of the Polish–Lithuanian Commonwealth until 1796 , when it was annexed by the Kingdom of Prussia to become the capital of the province of South Prussia .