If an ancestor in the army committed offences under military law, they may have been tried at a court martial. These courts could be held at home or overseas and produced a number of records including papers, proceedings and registers. Soldiers deserting was also a big problem, so these cases were often reported in newspapers.
Access Ancestry’s 1806-1930 registers