Complex sentence: In 1278, after Ottokar's defeat, it became--together with the rest of Carniola--property of Rudolph of Habsburg and administered by the Counts of Gorizia from 1279 until 1335, when it became the capital town of Carniola.
Split into simpler sentences: In 1278, after Ottokar's defeat, it became--together with the rest of Carniola--property of Rudolph of Habsburg. It was administered by the Counts of Gorizia from 1279 until 1335, when it became the capital town of Carniola.