 In the Principality of Albania, he served as the minister of public works and was elected to the Parliament of Albania.During the June Revolution of Fan Noli, Kotta escaped to Greece, but returned to lead the insurgency against Noli that led to the formation of the Albanian Republic under Ahmet Zogu.He became the speaker of the parliament during Zogu’s presidency and then Prime Minister after Zogu established the Albanian Kingdom.