The Mormon Battalion, the only religiously based unit in United States military history, served from July 1846 to July 1847 during the Mexican-American War of 1846-1848.