Hamilton served in the Crimean War as part of the Naval Brigade at the Siege of Sevastopol. He was promoted to Commander on 27 November 1854, and commanded HMS "Elk" in the East Indies and in China during the Second Anglo-Chinese War.