Rear Admiral Sweeney said in a statement that "the time is right to return to the private sector".
He is now the third senior Pentagon official to announce his resignation since President Donald Trump announced US forces would leave Syria.
Officials have said there is no timetable for the troop departure.
Rear Adm Sweeney held his post for two years from January 2017.