South Dakota Highway 240 (SD 240), also signed as the Badlands Loop, is a 40 miles state highway in southeastern Pennington and northwestern Jackson counties in South Dakota, United States, that travels through the eastern portion of Badlands National Park.