Archaeological evidence shows that the area has been settled at least since the late
Bronze Age between 1300 and 900 BC. It is first mentioned as
Rewenicz in written documents dating to 1220, making it one of the oldest towns in Slovenia.
Mass grave Ribnica is the site of a
mass grave associated with the Second World War. The Žiglovica Cave Mass Grave () is located northeast of the town, in a former hay field on a slope overgrown with grass and sparse woods. It contains the remains of 14 civilians from
Prigorica,
Žlebič, and
Pri Cerkvi–Struge that were murdered on 28 July 1942. The men were abducted by a
Partisan patrol while clearing woods along the railway. Some of the victims were thrown into the shaft alive, and one of them managed to pull a Partisan in with him. After the murders, the local Partisan political activist insisted that the men had merely been sent to White Carniola for punitive labor, but the murders were acknowledged by some of the Partisan participants. ==Landmarks==