The Swartberg mountains (black mountain in English) are a mountain range in the Western Cape province of South Africa. It is composed of two main mountain chains running roughly east–west along the northern edge of the semi-arid Little Karoo. To the north of the range lies the other large semi-arid area in South Africa, the Great Karoo. Most of the Swartberg Mountains are above 2000 m high, making them the tallest mountains in the Western Cape. It is also one of the longest, spanning some 230 km from south of Laingsburg in the west to between Willowmore and Uniondale in the east. Geologically, these mountains are part of the Cape Fold Belt.

Much of the Swartberg is part of a UNESCO World Heritage Site.

The two ranges

thumb|left|Small (Klein) Swartberg Range from the [[Laingsburg, Western Cape|Laingsburg area]]

thumb|right|400 px|A diagrammatic 400 km north–south cross-section through the southern portion of the [[Western Cape, South Africa, near Calitzdorp in the Little Karoo (approximately 21° 30’ E), showing the relationship between the Little and Great Karoos, separated by the Swartberg mountain range. The significance of the various geological layers (coloured layers) can be found in the articles on the Karoo Supergroup and Cape Fold Belt. The heavy black line flanked by opposing arrows is the fault that runs for nearly 300 km along the southern edge of the Swartberg Mountains. The Swartberg Mountain range owes some of its great height to upliftment along this fault line. The subsurface structures are not to scale.]]

The Swartberg consists of two officially named ranges, the Smaller and the Greater Swartberg Mountains.

Klein Swartberge

The Smaller Swartberg are the westernmost of the two. Ironically, this range is the higher one, including the province's highest peak, Seweweekspoortpiek (Seven Weeks Gorge Peak) at 2325 m. The famous Towerkop (Bewitch Peak) towers over the Klein Karoo town of Ladismith at a height of 2189 m. The peak is so named for its cleft peak, that, according to legend, was split by a spell and subsequent bolt of lightning.

Groot Swartberge

The Greater Swartberg is located to the east, with the dividing line between the two ranges being the Gamka River, which cuts a gorge directly through the range. This section, almost of a similar height, is slightly lower in elevation, with the Tierberg (Leopard Mountain) at 2132 m being the highest. These mountains are home to the Cango Caves in the exposed limestone basement rocks exposed by upliftment along a 300 km fault line that runs along the southern flank of the Swartberg ranges (see diagram on the left). These are the most famous subterranean system in South Africa, located just north of Oudtshoorn.

Mountain passes

Several passes cut through the Swartberg Range, and these are famous primarily for the spectacular geology they dissect, as well as for the engineering skill required in completing several of the routes across them.

Meiringspoort (1858)

thumb|View of the [[Meiringspoort pass]]

Until the first pass was cut, these mountains were virtually insurmountable, and cut the Great Karoo off from the Little Karoo and from the coast. John Molteno, Beaufort West businessman (and later Prime Minister) first surveyed the range for a pass with Andrew Bain, Thomas Bain. They rode out from Beaufort West on horseback, in 1854, for a week-long ride to traverse the range and plan the routes.

The pass was cut and the route completed in only 223 working days, comprising one of the era's most extraordinary feats of engineering. It was also a huge economic step for the interior of the Cape Colony. For example, by 1870, an eighth of the country's wool exports passed through the Meiringspoort.

The Meiringspoort provides paved road transit through the Swartberg range, using the route largely carved by a river. The poort connects the town of De Rust in the south, with the town of Klaarstroom in the north. It also offers a spectacular drive through incredible rock formations, and is the setting for an annual half marathon that ends in the town of De Rust.