During the First Rzeczpospolita (Republic of Both Nations), from the mid-1500 to 1795, (Poland’s borders included then the majority of territories of today’s Poland, a large part of the Ukraine, Belarus, Lithuania and parts of Latvia and Russia ) surnames already existed, but not for everybody.

Commonwealth of Both Nations at the peak of its strength. Source: Wikimedia, author: Halibutt