Entries related to courtyard
late 12c., "formal assembly held by a sovereign," from Old French cort "king's court; princely residence" (11c., Modern French cour), from Latin cortem, accusative of cors (earlier cohors) "enclosed yard," and by extension (and perhaps by association with curia "sovereign's assembly"), "those assembled in the yard; company, cohort," from assimilated form of com "with, together" (see com-) + stem hort- related to hortus "garden, plot of ground" (from PIE root *gher- (1) "to grasp, enclose").
Both senses of the Latin word emerged in English. From the purely physical sense come "palace, residence of a sovereign" (c. 1200), "enclosed space connected with a building or buildings" (early 14c.), and the sporting sense "smooth, level plot of ground on which a ball game is played" (1510s, originally of tennis). Also "short arm of a public street, enclosed on three sides by buildings" (1680s), formerly noted for poverty or as business districts.
From the notion of "surroundings of a sovereign in his regal state" (c. 1200) comes the legal meaning "a tribunal for judicial investigation" (c. 1300, early assemblies for justice were overseen by the sovereign personally), also "hall or chamber where justice is administered" (c. 1300). As an adjective, "pertaining to a court," late 13c.
"patch of ground around a house," Old English geard "fenced enclosure, garden, court; residence, house," from Proto-Germanic *gardan- (source also of Old Norse garðr "enclosure, garden, yard;" Old Frisian garda, Dutch gaard, Old High German garto, German Garten "garden;" Gothic gards "house," garda "stall"), of uncertain origin, perhaps from PIE *ghor-to-, suffixed form of root *gher- (1) "to grasp, enclose," with derivatives meaning "enclosure."
As "college campus enclosed by the main buildings," 1630s. Shipyard is from c. 1700. In railway usage, "ground adjacent to a train station or terminus, used for switching or coupling trains," 1827. Yard sale is attested by 1976.