 In 1874, Denmark granted Iceland a constitution and limited home rule.This was expanded in 1904, and Hannes Hafstein served as the first Minister for Iceland in the Danish cabinet.The Danish–Icelandic Act of Union, an agreement with Denmark signed on 1 December 1918 and valid for 25 years, recognised Iceland as a fully sovereign and independent state in a personal union with Denmark.