Situated between the Des Moines and Mississippi rivers, the area that became Keokuk had access to a large trading area and was an ideal location for settlers. In 1820, the US Army prohibited soldiers stationed along the Mississippi River from having wives who were Native American. Dr. Samuel C. Muir, a surgeon stationed at Fort Edwards (near present-day Warsaw, Illinois), instead resigned his commission rather than leave his Indian wife and crossed the river to resettle. He built a log cabin for them at the bottom of the bluff, and became the area's first white settler.