Institution of a divorce existed in ancient times, then was spread by roman law. However, under the influence of christianity, it practically disappeared as it became a sacrament. Recovery of this institution happened during the period french revolution through french law. More at:
http://www.mflegal.pl/divorce_in_poland_legal_regulation.html