The main objective of the treaty of Vienna was to undo the changes brought about in Europe during Napoleonic war.