 The regiment then formed part of the Army of Occupation until returning to England in April 1817.In 1823 the regiment was dispatched in small detachments in convict ships to New South Wales where it served at both Sydney, and Van Diemen's Land, where they participated in the Black War.It was then transferred to Bombay, with the first units of the 40th leaving Australia in 1828.