All Baltic tribes rose against the Order after the Battle of Durbe (1260). Mindaugas officially canceled his relations with the Livonian Order in 1261 and the acts of grants became invalid. Mindaugas's royal dynasty discontinued when he and two sons were assassinated in 1263. Lithuanian dukes did not join the Prussians in their uprising due to inside instability of the Lithuanian throne. Nadruvia and Scalovia (which comprised much of later Lithuania Minor) had been taken by the Teutonic Knights in 1275–1276 after the Prussian uprising and they reached Neman from the south in 1282. Lithuania also did not manage to retain Zemigalian castles lying north from Lithuania and the Zemigalians fell under the Order finally during Gediminas's rule. Samogitians, whose land lay between the Livonian Order and the Teutonic Order, had been many times granted to the Order juridically by Lithuanian dukes, popes, emperors of Holy Roman Empire, but either the Order did not managed to take it, or the Lithuanian dukes departed from their treaty and grant. Klaipėda was passed to Teutonic Order from its Livonian branch in 1328.