The szlachta ([ˈʂlaxta] (listen), exonym: Nobility) was a legally privileged noble class in the Kingdom of Poland and in the Grand Duchy of Lithuania. After the Union of Lublin in 1569, the Grand Duchy and its neighbouring Kingdom became a single state, the Polish–Lithuanian Commonwealth.