The United States Naval Academy is a four-year coeducational federal service academy adjacent to Annapolis, Maryland. Established on 10 October 1845, under Secretary of the Navy George Bancroft, it is the second oldest of the United States' five service academies, and educates officers for commissioning primarily into the United States Navy and United States Marine Corps.