In what year did the war of independence end