For the next ten years he kept trying to get a better job, making Lord Grafton very angry in the process.In 1778 he was knighted and made the Judge of the High Court of Admiralty, responsible for cases involving boats and the Navy. His work as king's advocate was not impressive, because of his lack of good choice-making and bad courtroom behaviors, as well as his aggressive speeches against his own co-workers. In 1781 he was elected to Parliament for Sudbury. Marriott worked for Lord Shelburne, who strongly opposed war.