In the case Marbury v. Madison, what was William Marbury's appointment?

A.
He was appointed as a federal judge.
B.
He was appointed secretary of state.
C.
He was appointed as a state judge.
D.
He was appointed to serve on the Supreme Court.