On July 20, 1821, William Cox Ellis (F) from Pennsylvania's 10th district resigned. A special election was held to fill the resulting vacancy on October 9, 1821.
Murray took his seat on December 12, 1821.[2]