What happened in 1817-1821?