In 788, about a century after the Arab conquest of North Africa, successive Moorish dynasties began to rule in Morocco. In the 16th century, the Sa'adi monarchy, particularly under Ahmad AL-MANSUR (1578-1603), repelled foreign invaders and inaugurated a golden age. The Alaouite dynasty, to which the current Moroccan royal family belongs, established a sultanate in Morocco beginning in the 17th century. In 1860, Spain occupied northern Morocco and ushered in a half century of trade rivalry among European powers that saw Morocco's sovereignty steadily erode; in 1912, the French imposed a protectorate over the country. A protracted independence struggle with France ended successfully in 1956. The internationalized city of Tangier and most Spanish possessions were turned over to the new country that same year. Sultan MOHAMMED V, the current monarch's grandfather, organized the new state as a constitutional monarchy and in 1957 assumed the title of King. Morocco annexed Western Sahara during the late 1970s, but final resolution on the status of the territory remains unresolved. Gradual political reforms in the 1990s resulted in the establishment of a bicameral legislature, which first met in 1997. Under King MOHAMMED VI - who in 1999 succeeded his father to the throne - human rights have improved. Morocco enjoys a moderately free press, but the government occasionally takes action against journalists who report on three broad subjects considered to be taboo: the monarchy, Islam, and the status of Western Sahara. Despite the continuing reforms, ultimate authority remains in the hands of the monarch.