The United States and Russia swapped prisoners on Wednesday amid their most tense relations in decades over the war in Ukraine, with former U.S. Marine Trevor Reed released in exchange for Russian pilot Konstantin Yaroshenko.

The swap was not part of broader diplomatic talks and did not represent an American change in approach on Ukraine, U.S. officials said. Russian-American ties have been at their worst since the Cold War era following Russia's Feb. 24 invasion of Ukraine and subsequent Western sanctions imposed on Moscow.

Reed, from Texas, was expected to arrive back in the United States on Wednesday night, State Department spokesperson Ned Price said. Senior U.S. officials said the 30-year-old was in "good spirits."