Pakistan has been ruled by both democratic and military governments. The first decade was marred with political unrest and instability, with frequent collapses of civilian democratic governments that eventually led to the 1958 military coup. Since 1947 till present now, Pakistan has been governed by various of both right-wing conservative governments and left-wing socialistic oriented governments, while neither far-right and far-left had failed to achieve enough majority to claim the exclusive mandate. From 1947 to 1958 as many as seven Prime Ministers of Pakistan either resigned or were ousted. On 7 October 1958 Pakistan's civilian and first President Iskander Mirza in collaboration with General Mohammad Ayub Khan abrogated Pakistan's constitution and declared Martial Law.