 In 1863, he would finally move to Idaho, setting up his own law firm in Lewiston.In 1866, three years after moving to Lewiston, Thayer was elected district attorney for the Third Judicial District of Idaho Territory.From 1866 until 1867, he moved to Boise to serve for a session of the Idaho Territory House of Representatives.