The Ottoman Empire began to attack the region in 1383, eventually incorporating Bosnia as a Turkish province. During the almost four hundred years in which the Ottomans dominated the area, Bosnians adopted many elements of Turkish culture, including religion; the majority of the people converted from Roman Catholicism or Eastern Orthodox Christianity to Islam. Because of Bosnia's position on the border between the Islamic power to the east and the Christian nations to the west, the Turks held on to the area tenaciously, particularly as their empire began to weaken in the sixteenth and seventeenth centuries. In the mid-nineteenth century, Bosnians joined Slavs from Serbia and Croatia in an uprising against the Turks. Austria-Hungary, with the aid of the Russians, took advantage of the Turks' weakened position and invaded Bosnia-Herzegovina, annexing the region in 1908.