In 1855 and 1857, Lawrence got a charter (a document that officially creates a town) from the pro-slavery Kansas government. The people of Lawrence resisted the Kansas government because they believed they were too pro-slavery. They did not accept it because it would force Lawrence to follow pro-slavery laws. In July 1857, the people of Lawrence tried to get an "official" (only the people of Lawrence saw it as official) charter from the extralegal (having no real authority) anti-slavery government. If they could not get one, Lawrence would simply make one themselves. Governor Robert J. Walker believed this was a revolt. On July 15, 1857, he sent an army to Lawrence and declared martial law. The army stayed close to Lawrence until October 1857. They stayed until October because there were elections. They wanted to make sure that there would be no violence at the elections. Anti-slavery people won the elections. The Kansas government became controlled by anti-slavery people. In early 1858, Samuel Jones quit his job, and he left Kansas. On January 16, 1858, Lawrence became the county seat of Douglas County. In February 1858, the Kansas government approved an anti-slavery charter for Lawrence. James Blood became the first mayor of Lawrence. The anti-slavery Kansas government met in Lawrence many times. In practice, Lawrence became the capital of Kansas from 1858 until 1861.