After declaring independence from the Habsburg Austrian Empire, the republic later joined the Kingdom of Sardinia, in an attempt, led by the latter, to unite northern Italy against foreign (mainly Austrian but also French) domination.