[deleted]
It was in a personal union (along with Norway, known as the Kalmar Union) under Denmark from 1397 to 1523. This means the three countries had the same monarch/head of state, but remained separate states.