Akureyri was granted its municipal charter by the king Christian VII in 1786. It lost its municipal status in 1836, but regained it in 1862.