The islands have been connected politically to Denmark since the 14th century .