On 2 November 2004, the UAE's first president, Sheikh Zayed bin Sultan Al Nahyan, died. Sheikh Khalifa bin Zayed Al Nahyan was elected as the President of the UAE. In accordance with the constitution, the UAE's Supreme Council of Rulers elected Khalifa as president. Sheikh Mohammed bin Zayed Al Nahyan succeeded Khalifa as Crown Prince of Abu Dhabi. In January 2006, Sheikh Maktoum bin Rashid Al Maktoum, the prime minister of the UAE and the ruler of Dubai, died, and Sheikh Mohammed bin Rashid Al Maktoum assumed both roles.