Montana Highway 287 (MT 287) is a state highway in the U.S. state of Montana. The highway runs 42.822 miles (68.915 km) from MT 41 in Twin Bridges east to U.S. Route 287 (US 287) in Ennis. MT 287 is the primary east–west highway of Madison County. The highway connects the county's four towns, including Sheridan and the county seat of Virginia City. The course of MT 287 follows the ultimate portions of two trails that met in Virginia City, the center of the Alder Gulch gold rush of the mid-1860s and the second territorial capital of Montana. Parts of the highway were improved from rudimentary roads around 1920 from Virginia City to Ennis. This connection became the first portion of Montana Highway 34 in the early 1930s; the highway was extended west to Twin Bridges in the late 1930s. MT 34