In any foreign port where there is no resident consul of the United States, or on the high seas, the senior officer present afloat has the powers of a consul in relation to mariners of the United States.
Structure US Code
Subtitle C— Navy and Marine Corps
CHAPTER 821— OFFICERS IN COMMAND
§ 8162. Aviation commands: eligibility
§ 8164. Marine Corps officers: limitation on power to command
§ 8165. Staff corps officers: limitation on power to command
§ 8166. Precedence accorded commanding officers
§ 8167. Requirement of exemplary conduct
§ 8168. Consular powers: senior officer present afloat
§ 8169. Policy as to leave and liberty
§ 8171. Continuation of authority after loss of vessel or aircraft
§ 8172. Marine Corps organizations on vessels: authority of officers