Answer
James Mattis was commissioned in the Marine Corps through the Naval Reserve Officers' Training Corps (NROTC). NROTC is a college-based program that provides a pathway for students to earn a commission as a Marine officer while pursuing a college degree. The program is offered at over 160 colleges and universities across the country. Upon graduation, students are commissioned as second lieutenants in the Marine Corps.