Well tehnicaly there was a polish-hungarian union in the late part of the 16th century under the house Bathory (Bathory Istvan 1533-1586). At that time Hungary was divided into 3 parts :Habsburg hun. , Royal Hun. and Transilvanya. Bathory Istvan was the ruler of Transylvania and was elected polish king to.