Garrett County (/ɡɛrɪt/) is the westernmost county of the U.S. state of Maryland, completely within the Appalachian Mountains. As of the 2020 United States census, the population was 28,806, making it the third-least populous county in Maryland. Its county seat is Oakland. The county was named for John Work Garrett (1820–1884), president of the Baltimore and Ohio Railroad. Created from Allegany County in 1872, it was the last county to be formed in the state. The county is part of the Western Maryland region of the state. Garrett County is bordered by four West Virginia counties and to the north the Maryland–Pennsylvania boundary known as the Mason–Dixon line. The eastern border with Allegany County was defined by the Bauer Report, submitted to Governor Lloyd Lowndes, Jr. on November 9, 1898. The Potomac River and State of West Virginia lie to the south and west.
Garrett County lies in the Allegheny Mountains, which here form the western flank of the Appalachian Mountain Range. Hoye-Crest, a summit along Backbone Mountain, is the highest point in Maryland at an elevation of 3,360 feet (1,020 m).