The First Saudi State was destroyed by forces sent by Muhammad Ali of Egypt, acting on behalf of the Ottoman Empire. Ottoman forces razed the Saudi capital Diriyah in 1818. They had maintained a garrison at Najd. This marked the decline of the House of Saud for a short time. Turki bin Abdullah bin Muhammad became the first Amir of the Second Saudi State; the cousin of Saud bin Saud, he ruled for 19 years till 1834, leading to the consolidation of the area though they were notionally under the control of the Muhammad Ali, the Viceroy of Egypt. In 1823, Turki ibn Abdallah chose Riyadh as the new capital. Following the assassination of Turki in 1834, his eldest son Faisal killed the assassin and took control, and refused to be controlled by the Viceroy of Egypt. Najd was then invaded and Faisal was taken captive and held in Cairo. However, as Egypt became independent of the Ottoman Empire, Faisal escaped after five years of incarceration, returned to Najd and resumed his reign, ruled till 1865, and consolidated the reign of House of Saud.