After the disintegration of Kievan Rus in the 12th century, the city of Pskov with its surrounding territories along the Velikaya River, Lake Peipus, Pskovskoye Lake and Narva River became a part of the Novgorod Republic. It kept its special autonomous rights, including the right for independent construction of suburbs (Izborsk is the most ancient among them). Due to Pskov's leading role in the struggle against the Livonian Order, its influence spread significantly. The long reign of Daumantas (1266–99) and especially his victory in the Battle of Rakovor (1268) ushered in the period of Pskov's actual independence. The Novgorod boyars formally recognized Pskov's independence in the Treaty of Bolotovo (1348), relinquishing their right to appoint the posadniks of Pskov. The city of Pskov remained dependent on Novgorod only in ecclesiastical matters until 1589, when a separate bishopric of Pskov was created and the archbishops of Novgorod dropped Pskov from their title and were created "Archbishops of Novgorod the Great and Velikie Luki".