Liechtenstein became fully independent in 1866 when the Confederation dissolved .