In 1551 AD, the Ottomans invaded the region during their first war with the Safavids, and kept it under their control until 1671. After several years of unrest between the Ottomans, Saudis and Rashidis, the Emirate of Nejd and Hasa, also known as the Third Saudi State, under Ibn Saud, took the entire Arabian Peninsula from Ottoman and Rashidi control. Most of the Eastern Province came under the Hasa region, and as such, the emirate has been under Saudi control since 1902. In 1923, the Dawasir of Bahrain moved into the area which is now Khobar, and later spread into Dammam, and they are credited with the foundation of the two cities.