James Gilliam, also known as James Kelly, (died July 12, 1701) was an English pirate active in the Indian Ocean during the 1690s and was a longtime associate of Captain William Kidd. One of Kidd's earliest crew members, Gilliam was a participant in the mutiny on board the Moacha and the subsequent murder of Captain Edgecomb who was killed in his sleep. After taking command of the East Indiaman, Gilliam and the crew of the Mocha captured several ships in the eastern seas until his arrest after returning to New England with Kidd in 1699. Transported to Great Britain, he was tried at the Old Bailey and found guilty of piracy. While in prison, he wrote A full and true Discovery of all the Robberies, Pyracies, and other Notorious Actions, of that Famous English Pyrate, Capt. James Kelly which included references to the as yet undiscovered Galapagos Islands before his eventual execution on July 12, 1701.