Even more confusing: the US Marine Corps is actually administered under the Department of the Navy but is considered a separate branch of service from the Navy.
The Marine Corps commandant (the highest officer) actually reports to the secretary of the Navy. So the Marine Corps is in this weird suave where it is a separate branch, yet also not.