In Marbury v. Madison, Marbury was denied a commission for a job that he was given by the Federalists as the Federalists were leaving power and the Democratic-Republicans were taking over.
Marbury's rights were violated because he was a member of a different party than the new people in power.