John Patrick Riley (also known as John Patrick O'Riley) (c.
1817 – August 1850?) was an Irish soldier in the British Army who emigrated to the United States and subsequently enlisted in the United States Army.
During the Mexican–American War of 1846–1848, Riley led a number of other Irish Catholics in the ranks who defected to Mexico, where they formed the Saint Patrick's Battalion in the Mexican Army.